kind of working quadtree... edge values need fixing