Put non-function stuff which relies on city being valid in AJAX callback
Put blocks in the city stuff so that those get saved.
Fixed typo. Replaced large amount of can build function with for loop
Redid the code for making the building divs. Renamed mineral.gif mineral.png
Fix center block city name issue. Clean up switch case block
Use modulus and a constant multiplier instead
Make sure an error doesn't lead to variables being set multiple times