add 8 puzzle, assignment of Algorithm 1