got polygontest working with quadtree