title: algorithm for the validating the net-walk puzzle game
body: <p>What is a simplest algorithm for validating if all the connections have been made successfully and all the connections are closed?</p>
  
  <p>I have laid the game tiles and the game is ready to play all i need is an algorithm to verify and make the changes to the connections when the user clicks on each tile every time.</p>
  
  <p>for your reference a <b><a href="http://www.logicgamesonline.com/netwalk/" rel="nofollow">game</a></b> like this one</p>