i actually got a headache from this programming bouncing is too difficult then like 2 weeks later i figured out the answer it was so simple i actually got mad oh yeah and you can press space to rotate the ball
credit to anthonybrandon and steamingsheep