Fixed the quadtree problems. There's one left: quadtree.remove doesn't seem to work correctly every time. Dammit.