Changed checkEdgePlacement and fixed logic error in checkCityRanks