Program Outline
/* If the sequence of moves transforms the puzzle from the initial configuration into the final configuration, output “yes”, else output “no”. */
TokenReader in = new TokenReader(System.in);
/* Let puz be the initial configuration, the integers 1..16 in row major order. */
/* Update puz according to each move. */
/* Say whether puz is final configuration, i.e., 1..16 in column major order. */