Your objective is to connect the pipes in each level; to do this click on the one you want to rotate and turn it until you place it correctly.
Use the [W] and [A] keys to rotate your selected pipe.
On the lower menu you can zoom in or move the image however you like.