this is one the most simple implementations of a backtrackiong algorithm. i've talked about it in a previous Topic. just look on the net for BACKTRACKING ALGORITHM. it's easy to understand and it will create all the possible solutions.
but i'm opened to any more questions about it