Create gameOver function.