merge_tiles function

Merge objects that are tiles