in row or column, puzzle matrix