Fix some major tile map parsing and rendering bugs