Implemented a JSON parser for the tile engine, tweaked some things inside the XGL.