Functions has_any legal_moves and has_any_player_any_legal_move has been added, with docs and tests.