// done internal LocationDetail DecideWhereToEvadeTo(GameState g) { Logger.WriteToDebugLog("Deciding where to move with Evade"); List<LocationDetail> map = g.GetMap(); LocationDetail locationToReturn; do { locationToReturn = map[new Random().Next(0, map.Count())]; } while (g.LocationIsInTrail(locationToReturn) || g.LocationIsInCatacombs(locationToReturn)); Logger.WriteToDebugLog("Returning " + locationToReturn.Name); return locationToReturn; }