Z-Sorting using bounding boxes, map layer changes for new sorting