made the tiler work with an arbitrary controur and it now takes existing tiles into account when generating tiles for a new segment