Changes analog to slow down sample rate to stop serial port flooding.
Created if statements to fill in gaps between large difference between
the reeadings and the ball position.