changed the collision detection algorithm to the bounding sphere method
still some bugs though