fix handling of game over