making the ball move on the board using tan(theta) property of right angled triangle