Updates the position of the pipes when their x is out of the canvas.