Added "Game over" logic.