Renamed "map" to "tile_map"

To avoid clashing with python built-in function