End menu and win/lose condition handling.