Updating the Puzzle class.