quadtree may be done; needs testing and debugging