added simple sphere collision detection and response