Merge collided boxes