Added support for collision in quadtree