added ball randomization