update Puzzle_eight prototype