Better value clipping in game_phase()

No functional change.