Agents coding work but need add on two variable data

Ball objects coding i have make partially with guide from YouTube video. I’m understand that ball class coding. Let’s said i run the ball object coding it’s some kind like this video https://www.youtube.com/watch?v=upfQATibeCU .

I’m think have to make it for each line in CSV file. I need suggestion from you sir?