Use PHASE_MIDGAME instead of a number in game_phase()