make game_end work well with sandbox mode