Thanks Lothendas27, that certainly helped. What still puzzles me is how does the game decide which way the iron pipes function?
edit: http://imgur.com/tVaP6 - This is how I solved the problem, as I said tho, I don't get how the game "knew" which way the iron pipe should function?