things aren't being drawn correctly and the kd tree implementation is likely really broken. abandon hope all ye who pull from here