fixed the sphere bouncing in main