changed TileMap to use tileset instead of storing each tile
converted TileMap to use single-dimensional array