Construct buildings after spawning units
Make hitpoints integer
Clean up code
Make replay an array on JSONs (one per turn), not one big JSON