Welp. Depth sorting works now. And collisions. But it's very inefficient. Map creation will take a long time.