added the gameOver function