added gameOver handling