Generalize to x by x puzzles