press the flag button to start then use the right and left arrows to go right and left. press the flag to restart when your ball has touched the red line.
I would like to give credit to my lovely digital tech teacher Miss Denko for teaching me to code and to the people that helped me when I was stuck.