private void CreateUnits() { var boxFactory = new BoxFactory(); var columnFactory = new ColumnFactory(); var rowFactory = new RowFactory(); for (int i = 0; i < 9; i++) { _boxes[i] = boxFactory.Factory(_cells, i); _columns[i] = columnFactory.Factory(_cells, i); _rows[i] = rowFactory.Factory(_cells, i); } }