BestMove function and ChessMoveBelongsTo function