Example: 17 pieces
Piece 1 is 6-5, the columns are 5, 6 and the rows is 11.
Piece 2 is 6-4, the columns are 5, 6, 10 and the rows are 4, 17.
Piece 3 is 4-3, the columns are 5, 9, 14 and the rows are 7, 4, 17 .
Piece 4 is 6-3, the columns are 6, 8, 9, 14 and the rows are 16, 4, 17 .
Piece 5 is 6-6, the columns are 12, 6, 8, 9, 14 and the rows are 22, 10, 17 .
Piece 6 is 6-1, the columns are 19, 6, 8, 9, 14 and the rows are 22, 10, 23, 1.
Piece 7 is 1-1, the columns are 20, 7, 8, 9, 14 and the rows are 22, 10, 23, 1, 2.
Piece 8 is 3-1, the columns are 20, 7, 9, 12, 14 and the rows are 22, 10, 23, 1, 6.
Piece 9 is 5-3, the columns are 20, 7, 9, 12, 17, 5 and the rows are 22, 10, 23, 1, 14.
Piece 10 is 5-1, the columns are 20, 7, 9, 12, 17, 5, 6 and the rows are 22, 10, 23, 2, 19.
Piece 11 is 4-1, the columns are 20, 7, 9, 12, 17, 5, 11 and the rows are 22, 14, 24, 2, 19.
Piece 12 is 4-0, the columns are 20, 7, 9, 12, 17, 5, 11, 4, 0 and the rows are 22, 18, 24, 2, 19.
Piece 13 is 6-0, the columns are 20, 7, 9, 12, 17, 5, 11, 4, 6 and the rows are 22, 18, 24, 8, 19.
Piece 14 is 6-2, the columns are 20, 7, 9, 12, 17, 5, 11, 4, 6, 8 and the rows are 22, 18, 24, 14, 21.
Piece 15 is 2-0, the columns are 20, 7, 9, 12, 17, 5, 11, 4, 6, 10 and the rows are 22, 18, 24, 14, 21, 2.
Piece 16 is 0-0, the columns are 20, 7, 9, 12, 17, 5, 11, 4, 6, 10 and the rows are 22, 18, 24, 14, 21, 2, 0.
Piece 17 is 3-0, the columns are 20, 7, 9, 12, 17, 8, 11, 4, 6, 10 and the rows are 22, 18, 24, 14, 21, 2, 3.