Thank you for your feedback. The reason for the stuttering is because I coded a subroutine in which makes the computer try to follow the ball as soon as the ball enters the middle of the computer's area. Then it follows the vertical position of the ball.