working on ball program