First step in the tile merging process