Worked more on fixing map rendering. Close to functional. Tiles with an X
of 0 in the tileset image are not rendered for some reason.