private bool Build(int player, GameField field, ICommander commander) { Terrain building = (Terrain)random.Next(4, 10); foreach (Point point in field.Iterator()) { if (field.IsBuild(point, building)) { commander.Build(point.X, point.Y, building); return true; } } return false; }