fix bug in gameOver.