continuing to refactor. Now loads mapobjects from TMX files.