Added if statement to check for cities with the same coordinates.