var intelligence = new artificialintelligence(); foreach (var solution in intelligence.preexploratorysolutions) { if (solution.isundercover) { solution.deflect(); } else { intelligence.initiateafresh(); } }