animated JS program to solve the triangle peg puzzle