Fixed bugs with non-square TileMaps and incorrect map files.