A puzzle and patterns have a lot in common.