Fixed last timeForDisplacement bugs

Function no longer requires absolute values for acceleration and displacement. The correct values are passed in and calculated. Directions on the strip have been changed so that balls going up have positive speed. This makes the new-height calculations more intuitive to interpret.