add method gameOver for Snake