Implemented Octrees for collision detection