Tuned parameters and added QuadTree for speeding up collision detection