Try to change the draw() function so that the ball accelerates or decelerates every time it hits a wall.
next prev