getting the peg solver to work