Fixed gameover conditions.