fixed a game over bug