public byte[] AddTurn(IPlayable player, byte[] oppMove) { byte[] newTurn = player.NextMove((byte[, ])board.Clone(), goal); byte currentValueOfCell = board[newTurn[0], newTurn[1]]; if (currentValueOfCell != 0) { Console.WriteLine("Cell {0}{1} is taken", newTurn[0], newTurn[1]); throw new CellNotEmptyException(); } else { board[newTurn[0], newTurn[1]] = player.Identificator; movesCount++; return(newTurn); } }