C++ program which solves peg solitaire game