fixed gameover method