rewrote tiled map loading