Command-line solver was dividing up non-square puzzles the wrong way