Added Octree to collisionDection() function