game is ended correctly when the user dies 3 times