code: void resetRows(int i, int marking) {
          for (int j = (i * mCols); j < data.length; j++)
              if (data[j] == marking) data[j] = 1;
      }
docs: Reset all values marked with (marking) from row i onwards.
  
  @param i       row index
  @param marking the marking to reset (should be negative)