Thanks for playing!! Somebody else found that glitch too. The game is supposed to end after you miss 3 eggs. I am not entirely sure why it isn't working properly, but I will be looking into it soon!
Could it be if you lose two eggs at the same time so it goes instantly to -1 not to zero? Depending on how your code is checking it. If it's only like if health == 0 and not if health <= 0 then it could be that.