extracting tiles from map