Refactored and made ball random
Refactored and made ball random