public Planet FindNicestNeutral(int maxDefense, bool allowAllreadyAttacked) { Quadrant focus = currentUniverse.OwnShipFocus; Quadrant eFocus = currentUniverse.EnemyShipFocus; return(currentUniverse.All.Planets .Where(planet => planet.IsNeutral && planet.GrowthRate > 1 && planet.NumShips < maxDefense && (allowAllreadyAttacked || !planet.IsUnderAttack)) .OrderBy(planet => (int)focus.Delta(planet) - (eFocus.Delta(planet) / 2.0)) .FirstOrDefault()); }