working collisiondetection with polygons in quadtree