JavaScript Peg Solitaire Puzzle Game