bridges is a very nice game in which you basically have to build a network. if you don't know it, you may like it
Bridges - online puzzle game

now... i was asking my self how can i construct a matrix that would solve a particular puzzle.
I've been breaking my head over it for hours!!!

problems I encountered:
1. n1 can connect to an n2 only if they share the same X or Y value
2. a face cannot cut another face. once a face has been created it cannot be crossed.

how would you do it? or at least, how would you start??