Switched from JSON to simpler format.
Code is a bit of a mess at the moment. Might have to generate some JSON
later anyway to make it easier to make playable game in browser.