fixed the gameOver var issue