corrected function crossoverCities