safize quadtree collision check