Changed the handler's arrayList to linkedlist in hopes of repairing the depth sorting but caused multiple concurrentmodificationexceptions instead. Tried to repair those (should still be checked) and even finally managed to fix the depth sorting problem (which still remains a bit of an mystery)