This is programmed AI. It involves the ball learning from the previous results, and choosing the closest one to the target it then reruns untill it hits the target. The Lines are just for you to see what is going on. You are welcome to remix and make it into a game. Press Space to start it off.