colission using quadtrees