Use the arrow keys to move the ball around
This is a neat concept I had for detecting slopes in scratch. Try incorperating it into your game. It's not 100% perfect but it works pretty well