Fix bug where 'Give up' button would show after game end.