depth first search solution to peg puzzle