Script that solves triangular peg board game