Iterate over tiles
Renumber objects to make valid result