Implemented gravity for ball and slime