If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
Rotate and connect all pipes together! Ends of pipes can't be open and all pipes must be connected to each other! You can use only pipe-to-pipe connection!
Left click - select pipe.
W - Vertical Rotation.
A - Horizontal Rotation.