You are given a grid of pipes of different shapes. The aim of the game is to connect the pipes into a single fully connected network, without loops and free ends. You may connect the pipes by rotating ...