Added game over handler and win condition.