Use preferred whitespace (3 spaces, no tabs, no trailing whitespace, file ends in newline).
Change player_to_move to team_to_move and remove implementation of check and assertion_failed from header.