change TileSet from struct to class