private void GenerateMove(Game game) { ReadOnlyCollection<IPlayerMoveForUpdate> moves = game.GenerateAllMoves(); int index = RandomGenerator.Next(moves.Count); _actualMove = moves[index]; }