Move game_phase() to Position

It seems a more natural to place this
function there.

No functional change.