Sets the cell at (x, y) and may take ownership of cell.
x
y
cell
void setCellOwned(int x, int y, Cell? cell) => _setCell(x, y, cell, takeOwnership: true);