Used enable_shared_from_this to clone Tile objects in Tileset.