Fixed Map and Tile

map and tile used the old variable names for each other. Corrected