fixed sudden shifts in horizontal movement after obstacles go off screen