Variable speed code for paddle and ball.