Crudely using quadtree for collision detection.