isRowViolated method
Determines if a row is violated by using a Set of Cell values If, while building this Set, a duplicate value is going to be added, then this row is violated No violations are counted for empty cells (cells whose value is 0)
Implementation
bool isRowViolated(Position position) {
return _doesCellCollectionHaveViolatedCells(getRow(position.grid!.x as int));
}