adds turn check to rules
fixes typo
renames graph function
renames coords into roadCoords and buildingCoords to keep track of the difference