Move assert_() and v() to class Puzzle, use Out exception to quit