public static IMove RandomMove(this IRandomGenerator randomGenerator) { var index = randomGenerator.GetNext(0, PossibleMoves.Count - 1); return(PossibleMoves.ElementAt(index)); }