Some of TileFactory and other random functions