added quadtree class (not bugfixed yet) for collision detection