user: Please show me the C implementation that matches the assembly code listed below:

```asm
<PLAY_engine>:
  endbr64
  push   %r15
  mov    $0x2323,%r9d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %esi,%ebx
  sub    $0x298,%rsp
  mov    %rdi,0x48(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x288(%rsp)
  xor    %eax,%eax
  movq   $0x0,0x68(%rsp)
  mov    %r9w,0x286(%rsp)
  test   %esi,%esi
  jle    L451
  lea    -0x1(%rsi),%eax
  mov    %esi,%r12d
  lea    0x80(%rsp),%r15
  lea    (%rax,%rax,4),%rax
  lea    0xf0(%rsp),%rbp
  lea    0x8a(%rsp,%rax,2),%r14
  lea    0x0(,%r12,4),%r13
  nopl   (%rax)
L194:
  mov    %r15,%rdi
  mov    %r12,%rdx
  mov    $0xb2,%esi
  add    $0xa,%r15
  call   <memset@plt>
  mov    %rbp,%rdi
  mov    %r13,%rdx
  xor    %esi,%esi
  call   <memset@plt>
  add    $0x28,%rbp
  cmp    %r15,%r14
  jne    L194
L451:
  mov    %ebx,%eax
  imul   %ebx,%eax
  sar    %eax
  mov    %eax,0x20(%rsp)
  je     L128
  lea    0x80(%rsp),%rax
  movl   $0x0,0x34(%rsp)
  xor    %r12d,%r12d
  lea    D42(%rip),%r15
  movl   $0x0,0x8(%rsp)
  lea    D159(%rip),%r14
  movl   $0x0,0x38(%rsp)
  movl   $0x0,0x10(%rsp)
  movl   $0x0,0x14(%rsp)
  mov    %rax,0x18(%rsp)
  nopl   0x0(%rax)
L176:
  mov    %r15,%rdi
  call   <system@plt>
  mov    0x18(%rsp),%rdi
  mov    %ebx,%esi
  call   <exibe_tabuleiro@plt>
  mov    0x10(%rsp),%ebp
  mov    0x6c(%rsp),%r9d
  xor    %eax,%eax
  mov    0x68(%rsp),%ecx
  mov    $0x1a,%r8d
  mov    $0x1a,%edx
  mov    %r14,%rdi
  and    $0x1,%ebp
  lea    0x1(%rbp),%esi
  call   <printf@plt>
  test   %r12d,%r12d
  je     L437
  cmp    $0x1,%r12d
  je     L412
  mov    0x8(%rsp),%r8d
  test   %r8d,%r8d
  je     L474
  mov    0x34(%rsp),%edi
  test   %edi,%edi
  je     L474
  mov    0x24(%rsp),%ecx
  cmp    %ecx,0x2c(%rsp)
  sete   %al
  mov    0x30(%rsp),%edi
  cmp    %edi,0x28(%rsp)
  sete   %dl
  and    %edx,%eax
  movzbl 0x3f(%rsp),%edx
  cmp    %dl,0x3e(%rsp)
  je     L365
  movslq 0x24(%rsp),%r10
  movslq 0x28(%rsp),%r12
  test   %al,%al
  jne    L126
  lea    (%r12,%r12,4),%rax
  movslq 0x2c(%rsp),%r11
  movslq 0x30(%rsp),%r13
  lea    (%r10,%rax,2),%rax
  mov    0xf0(%rsp,%rax,4),%edx
  cmp    $0x1,%edx
  je     L221
  lea    0x0(%r13,%r13,4),%rax
  lea    (%r11,%rax,2),%rax
  mov    0xf0(%rsp,%rax,4),%ecx
  cmp    $0x1,%ecx
  jne    L196
L221:
  mov    $0xe4,%ecx
  mov    $0x87,%edx
  mov    $0xa0,%esi
  mov    $0xa0,%r9d
  mov    $0xc6,%r8d
  lea    D69(%rip),%rdi
  xor    %eax,%eax
  mov    %r11,0x40(%rsp)
  mov    %r10,0x8(%rsp)
  call   <printf@plt>
  mov    0x8(%rsp),%r10
  lea    (%r12,%r12,4),%rax
  mov    0x40(%rsp),%r11
  lea    (%r10,%rax,2),%rax
  mov    0xf0(%rsp,%rax,4),%edx
  lea    0x0(%r13,%r13,4),%rax
  lea    (%r11,%rax,2),%rax
  mov    0xf0(%rsp,%rax,4),%ecx
L88:
  test   %edx,%edx
  jne    L102
  lea    (%r12,%r12,4),%rax
  lea    0x290(%rsp,%rax,2),%rax
  movb   $0xb2,-0x210(%rax,%r10,1)
L102:
  test   %ecx,%ecx
  je     L183
L64:
  xor    %eax,%eax
  xor    %r12d,%r12d
  call   <getchar@plt>
  movl   $0x1,0x8(%rsp)
  nopl   0x0(%rax,%rax,1)
L458:
  mov    0x20(%rsp),%ecx
  cmp    %ecx,0x14(%rsp)
  jl     L176
L459:
  mov    0x38(%rsp),%esi
  lea    0x68(%rsp),%rdi
  call   <finaliza@plt>
  mov    0x288(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L157
  add    $0x298,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L175:
  mov    $0xa0,%r9d
  mov    $0xc6,%r8d
  mov    $0xe4,%ecx
  xor    %eax,%eax
  mov    $0x87,%edx
  mov    $0xa0,%esi
  lea    D69(%rip),%rdi
  call   <printf@plt>
  movslq 0x2c(%rsp),%r11
  movslq 0x30(%rsp),%r13
L416:
  lea    0x0(%r13,%r13,4),%rax
  lea    (%r11,%rax,2),%rax
  mov    0xf0(%rsp,%rax,4),%edx
L61:
  test   %edx,%edx
  jne    L64
L183:
  lea    0x0(%r13,%r13,4),%rax
  lea    0x290(%rsp,%rax,2),%rax
  movb   $0xb2,-0x210(%rax,%r11,1)
  jmp    L64
  nopl   0x0(%rax,%rax,1)
L474:
  mov    $0x87,%edx
  mov    $0xa0,%esi
  xor    %eax,%eax
  mov    $0xc6,%r8d
  mov    $0xe4,%ecx
  lea    D89(%rip),%rdi
  call   <printf@plt>
  movslq 0x28(%rsp),%r12
  movslq 0x24(%rsp),%r10
  lea    (%r12,%r12,4),%rax
  add    %rax,%rax
  lea    (%rax,%r10,1),%rdx
  mov    0xf0(%rsp,%rdx,4),%esi
  test   %esi,%esi
  jne    L255
  add    $0x290,%rax
  add    %rsp,%rax
  movb   $0xb2,-0x210(%rax,%r10,1)
L255:
  movslq 0x30(%rsp),%r13
  movslq 0x2c(%rsp),%r11
  lea    0x0(%r13,%r13,4),%rax
  add    %rax,%rax
  lea    (%rax,%r11,1),%rdx
  mov    0xf0(%rsp,%rdx,4),%ecx
  test   %ecx,%ecx
  jne    L392
  add    $0x290,%rax
  add    %rsp,%rax
  movb   $0xb2,-0x210(%rax,%r11,1)
L392:
  xor    %eax,%eax
  xor    %r12d,%r12d
  call   <getchar@plt>
  jmp    L458
  nopw   0x0(%rax,%rax,1)
L437:
  mov    $0xa3,%esi
  lea    D144(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D77(%rip),%rbp
  lea    0x70(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  mov    $0xa3,%esi
  lea    D14(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x78(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  mov    0x70(%rsp),%eax
  mov    0x78(%rsp),%ecx
  sub    $0x1,%eax
  sub    $0x1,%ecx
  mov    %eax,%edx
  mov    %ecx,%esi
  mov    %eax,0x70(%rsp)
  not    %edx
  not    %esi
  mov    %ecx,0x78(%rsp)
  shr    $0x1f,%esi
  shr    $0x1f,%edx
  and    %esi,%edx
  cmp    %ebx,%eax
  setl   %sil
  test   %sil,%dl
  je     L71
  cmp    %ebx,%ecx
  jl     L26
L71:
  movl   $0x0,0x8(%rsp)
  mov    $0x1,%r12d
  jmp    L458
  nopl   0x0(%rax,%rax,1)
L412:
  mov    $0xa3,%esi
  lea    D114(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D77(%rip),%rbp
  lea    0x74(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  mov    $0xa3,%esi
  lea    D177(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x7c(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  mov    0x74(%rsp),%eax
  mov    0x7c(%rsp),%ecx
  sub    $0x1,%eax
  sub    $0x1,%ecx
  mov    %ecx,%edx
  mov    %eax,%esi
  mov    %eax,0x74(%rsp)
  not    %edx
  not    %esi
  mov    %ecx,0x7c(%rsp)
  shr    $0x1f,%esi
  shr    $0x1f,%edx
  and    %esi,%edx
  cmp    %ebx,%eax
  setl   %sil
  test   %sil,%dl
  je     L347
  cmp    %ebx,%ecx
  jl     L115
L347:
  movl   $0x0,0x34(%rsp)
  mov    $0x2,%r12d
  jmp    L458
L196:
  xor    %eax,%eax
  mov    $0x88,%esi
  mov    %r11,0x58(%rsp)
  lea    D155(%rip),%rdi
  mov    %r10,0x50(%rsp)
  mov    %edx,0x40(%rsp)
  mov    %ecx,0x8(%rsp)
  call   <printf@plt>
  addl   $0x1,0x38(%rsp)
  cmpb   $0x40,0x3e(%rsp)
  mov    0x8(%rsp),%ecx
  mov    0x40(%rsp),%edx
  mov    0x50(%rsp),%r10
  mov    0x58(%rsp),%r11
  je     L93
  cmpb   $0x24,0x3e(%rsp)
  je     L229
L292:
  mov    $0x21,%edi
  mov    %r11,0x58(%rsp)
  mov    %r10,0x50(%rsp)
  mov    %edx,0x40(%rsp)
  mov    %ecx,0x8(%rsp)
  call   <putchar@plt>
  addl   $0x1,0x10(%rsp)
  mov    0x58(%rsp),%r11
  mov    0x50(%rsp),%r10
  mov    0x40(%rsp),%edx
  mov    0x8(%rsp),%ecx
  jmp    L88
L365:
  test   %al,%al
  jne    L251
  movslq 0x28(%rsp),%r12
  movslq %ecx,%r10
  lea    (%r12,%r12,4),%rax
  add    %rax,%rax
  mov    %rax,0x40(%rsp)
  add    %r10,%rax
  mov    0xf0(%rsp,%rax,4),%eax
  mov    %eax,0x8(%rsp)
  cmp    $0x1,%eax
  je     L175
  movslq 0x2c(%rsp),%r11
  movslq %edi,%r13
  lea    0x0(%r13,%r13,4),%rax
  lea    (%r11,%rax,2),%rax
  cmpl   $0x1,0xf0(%rsp,%rax,4)
  je     L346
  addl   $0x1,0x38(%rsp)
  cmpb   $0x40,0x3e(%rsp)
  je     L327
  cmpb   $0x24,0x3e(%rsp)
  mov    %r11,0x40(%rsp)
  mov    %r10,0x8(%rsp)
  je     L334
  mov    $0x88,%esi
  lea    D172(%rip),%rdi
  xor    %eax,%eax
  movslq %ebp,%rbp
  call   <printf@plt>
  addl   $0x2,0x68(%rsp,%rbp,4)
  mov    0x40(%rsp),%r11
  addl   $0x1,0x10(%rsp)
  mov    0x8(%rsp),%r10
L261:
  lea    (%r12,%r12,4),%rax
  addl   $0x1,0x14(%rsp)
  lea    (%r10,%rax,2),%rax
  movl   $0x1,0xf0(%rsp,%rax,4)
  lea    0x0(%r13,%r13,4),%rax
  lea    (%r11,%rax,2),%rax
  movl   $0x1,0xf0(%rsp,%rax,4)
  jmp    L64
L26:
  movslq %eax,%rdx
  mov    0x48(%rsp),%rdi
  movslq %ecx,%rsi
  mov    %ecx,0x24(%rsp)
  lea    (%rdx,%rdx,4),%rdx
  mov    %eax,0x28(%rsp)
  mov    $0x1,%r12d
  add    %rdx,%rdx
  movl   $0x1,0x8(%rsp)
  add    %rdx,%rdi
  add    $0x290,%rdx
  movzbl (%rdi,%rsi,1),%edi
  add    %rsp,%rdx
  mov    %dil,0x3e(%rsp)
  mov    %dil,-0x210(%rsi,%rdx,1)
  jmp    L458
L346:
  mov    $0xa0,%r9d
  mov    $0xc6,%r8d
  mov    $0xe4,%ecx
  xor    %eax,%eax
  mov    $0x87,%edx
  mov    $0xa0,%esi
  mov    %r10,0x50(%rsp)
  lea    D69(%rip),%rdi
  call   <printf@plt>
  mov    0x8(%rsp),%eax
  test   %eax,%eax
  jne    L64
  mov    0x40(%rsp),%rax
  mov    0x50(%rsp),%r10
  add    $0x290,%rax
  add    %rsp,%rax
  movb   $0xb2,-0x210(%rax,%r10,1)
  jmp    L64
L229:
  movslq %ebp,%rbp
  lea    D180(%rip),%rdi
  xor    %eax,%eax
  mov    %edx,0x40(%rsp)
  mov    %r11,0x58(%rsp)
  mov    %r10,0x50(%rsp)
  mov    %ecx,0x8(%rsp)
  subl   $0x7,0x68(%rsp,%rbp,4)
  call   <printf@plt>
  mov    0x58(%rsp),%r11
  mov    0x50(%rsp),%r10
  mov    0x40(%rsp),%edx
  mov    0x8(%rsp),%ecx
  jmp    L292
L128:
  movl   $0x0,0x38(%rsp)
  jmp    L459
L126:
  movslq 0x2c(%rsp),%r11
  movslq 0x30(%rsp),%r13
  jmp    L221
L115:
  movslq %eax,%rdx
  mov    0x48(%rsp),%rdi
  movslq %ecx,%rsi
  mov    %ecx,0x2c(%rsp)
  lea    (%rdx,%rdx,4),%rdx
  mov    %eax,0x30(%rsp)
  mov    $0x2,%r12d
  add    %rdx,%rdx
  movl   $0x1,0x34(%rsp)
  add    %rdx,%rdi
  add    $0x290,%rdx
  movzbl (%rdi,%rsi,1),%edi
  add    %rsp,%rdx
  mov    %dil,0x3f(%rsp)
  mov    %dil,-0x210(%rsi,%rdx,1)
  jmp    L458
L251:
  mov    $0x87,%edx
  mov    $0xa0,%r9d
  mov    $0xc6,%r8d
  xor    %eax,%eax
  mov    $0xe4,%ecx
  mov    $0xa0,%esi
  lea    D69(%rip),%rdi
  call   <printf@plt>
  movslq 0x28(%rsp),%r12
  movslq 0x24(%rsp),%r10
  movslq 0x2c(%rsp),%r11
  movslq 0x30(%rsp),%r13
  lea    (%r12,%r12,4),%rax
  add    %rax,%rax
  lea    (%rax,%r10,1),%rdx
  mov    0xf0(%rsp,%rdx,4),%edx
  test   %edx,%edx
  jne    L416
  lea    0x0(%r13,%r13,4),%rdx
  add    $0x290,%rax
  lea    (%r11,%rdx,2),%rdx
  add    %rsp,%rax
  movb   $0xb2,-0x210(%rax,%r10,1)
  mov    0xf0(%rsp,%rdx,4),%edx
  jmp    L61
L93:
  movslq %ebp,%rbp
  lea    D164(%rip),%rdi
  xor    %eax,%eax
  subl   $0x4,0x68(%rsp,%rbp,4)
  call   <printf@plt>
  mov    0x8(%rsp),%ecx
  mov    0x40(%rsp),%edx
  mov    0x50(%rsp),%r10
  mov    0x58(%rsp),%r11
  jmp    L292
L334:
  xor    %eax,%eax
  movslq %ebp,%rbp
  mov    $0x93,%edx
  mov    $0x88,%esi
  lea    D22(%rip),%rdi
  call   <printf@plt>
  addl   $0x7,0x68(%rsp,%rbp,4)
  mov    0x8(%rsp),%r10
  cmpb   $0x23,0x286(%rsp,%rbp,1)
  mov    0x40(%rsp),%r11
  je     L441
  addl   $0x1,0x10(%rsp)
L441:
  movb   $0x24,0x286(%rsp,%rbp,1)
  jmp    L261
L327:
  xor    %eax,%eax
  movslq %ebp,%rbp
  mov    $0x93,%edx
  mov    $0x88,%esi
  lea    D179(%rip),%rdi
  mov    %r11,0x40(%rsp)
  mov    %r10,0x8(%rsp)
  call   <printf@plt>
  addl   $0x4,0x68(%rsp,%rbp,4)
  mov    0x8(%rsp),%r10
  cmpb   $0x23,0x286(%rsp,%rbp,1)
  mov    0x40(%rsp),%r11
  je     L3
  addl   $0x1,0x10(%rsp)
L3:
  movb   $0x40,0x286(%rsp,%rbp,1)
  jmp    L261
L157:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D42
type_infered: string
name: read_data
arguments: label: D159
type_infered: string
name: read_data
arguments: label: D69
type_infered: string
name: read_data
arguments: label: D89
type_infered: string
name: read_data
arguments: label: D144
type_infered: string
name: read_data
arguments: label: D77
type_infered: string
name: read_data
arguments: label: D14
type_infered: string
name: read_data
arguments: label: D114
type_infered: string
name: read_data
arguments: label: D177
type_infered: string
name: read_data
arguments: label: D155
type_infered: string
name: read_data
arguments: label: D172
type_infered: string
name: read_data
arguments: label: D180
type_infered: string
name: read_data
arguments: label: D164
type_infered: string
name: read_data
arguments: label: D22
type_infered: string
name: read_data
arguments: label: D179
type_infered: string

tool: D42: clear

tool: D159: 
Vez: Jogador %d               Pontos: |Jogador 1%c %d|     |Jogador 2%c %d|
 

tool: D69: 
Jogada inv%clida! As posi%c%ces s%co iguais, ou j%c foram jogadas.

tool: D89: 
Jogada inv%clida! As posi%c%ces n%co existem no tabuleiro.

tool: D144: 
Digite o n%cmero da linha do primeiro item: 

tool: D77: %d

tool: D14: Digite o n%cmero da coluna do primeiro item: 

tool: D114: 
Digite o n%cmero da linha do segundo item: 

tool: D177: Digite o n%cmero da coluna do segundo item: 

tool: D155: 
Voc%c perdeu

tool: D172: 
Voc%c ganhou 2 pontos!

tool: D180:  7 pontos

tool: D164:  4 pontos

tool: D22: 
Voc%c ganhou o b%cnus de 7 pontos!

tool: D179: 
Voc%c ganhou o b%cnus de 4 pontos!

assistant: ```c
void PLAY_engine(char matriz[10][10], int limite) {
  int i, j, final = 0, n_player = 0, id_player, pontos[2] = {0, 0}, linha[2], coluna[2], valida[10][10];
  int po_item = 0, p_jog[2][2], jogadas = 0, valida_pos[2] = {0, 0};
  char exibicao[10][10], saida[2], historico[2] = {'#', '#'};
  for (i = 0; i < limite; i++) {
    for (j = 0; j < limite; j++) {
      exibicao[i][j] = 178;
      valida[i][j] = 0;
    }
  }
  while (final < ((limite * limite) / 2)) {
    system("clear");
    exibe_tabuleiro(exibicao, limite);
    if (n_player % 2 == 0)
      id_player = 0;
    else
      id_player = 1;
    printf("\nVez: Jogador %d               Pontos: |Jogador 1%c %d|     |Jogador 2%c %d|\n ", id_player + 1, 26, pontos[0], 26, pontos[1]);
    if (po_item == 0) {
      printf("\nDigite o n%cmero da linha do primeiro item: ", 163);
      scanf("%d", &linha[0]);
      printf("Digite o n%cmero da coluna do primeiro item: ", 163);
      scanf("%d", &coluna[0]);
      linha[0]--;
      coluna[0]--;
      if (linha[0] < limite && linha[0] >= 0 && coluna[0] < limite && coluna[0] >= 0) {
        exibicao[linha[0]][coluna[0]] = matriz[linha[0]][coluna[0]];
        saida[0] = matriz[linha[0]][coluna[0]];
        p_jog[0][0] = linha[0];
        p_jog[0][1] = coluna[0];
        valida_pos[0] = 1;
      } else {
        valida_pos[0] = 0;
      }
      po_item++;
    } else if (po_item == 1) {
      printf("\nDigite o n%cmero da linha do segundo item: ", 163);
      scanf("%d", &linha[1]);
      printf("Digite o n%cmero da coluna do segundo item: ", 163);
      scanf("%d", &coluna[1]);
      linha[1]--;
      coluna[1]--;
      if (linha[1] < limite && linha[1] >= 0 && coluna[1] < limite && coluna[1] >= 0) {
        exibicao[linha[1]][coluna[1]] = matriz[linha[1]][coluna[1]];
        saida[1] = matriz[linha[1]][coluna[1]];
        p_jog[1][0] = linha[1];
        p_jog[1][1] = coluna[1];
        valida_pos[1] = 1;
      } else {
        valida_pos[1] = 0;
      }
      po_item++;
    } else {
      po_item = 0;
      if (valida_pos[0] == 0 || valida_pos[1] == 0) {
        printf("\nJogada inv%clida! As posi%c%ces n%co existem no tabuleiro.", 160, 135, 228, 198);
        if (valida[p_jog[0][0]][p_jog[0][1]] == 0 && (p_jog[0][0] < limite || p_jog[0][0] >= 0 || p_jog[0][1] < limite || p_jog[0][1] >= 0))
          exibicao[p_jog[0][0]][p_jog[0][1]] = 178;
        if (valida[p_jog[1][0]][p_jog[1][1]] == 0 && (p_jog[1][0] < limite || p_jog[1][0] >= 0 || p_jog[1][1] < limite || p_jog[1][1] >= 0))
          exibicao[p_jog[1][0]][p_jog[1][1]] = 178;
        getchar();
      } else if (saida[0] == saida[1]) {
        if ((p_jog[0][0] == p_jog[1][0] && p_jog[0][1] == p_jog[1][1]) || valida[p_jog[0][0]][p_jog[0][1]] == 1 || valida[p_jog[1][0]][p_jog[1][1]] == 1) {
          printf("\nJogada inv%clida! As posi%c%ces s%co iguais, ou j%c foram jogadas.", 160, 135, 228, 198, 160);
          if (valida[p_jog[0][0]][p_jog[0][1]] == 0)
            exibicao[p_jog[0][0]][p_jog[0][1]] = 178;
          if (valida[p_jog[1][0]][p_jog[1][1]] == 0)
            exibicao[p_jog[1][0]][p_jog[1][1]] = 178;
        } else {
          if (saida[0] == '@') {
            printf("\nVoc%c ganhou o b%cnus de 4 pontos!", 136, 147);
            pontos[id_player] += 4;
            if (historico[id_player] != '#') {
              historico[id_player] = '#';
              n_player++;
            }
            historico[id_player] = saida[0];
            jogadas++;
          } else if (saida[0] == '$') {
            printf("\nVoc%c ganhou o b%cnus de 7 pontos!", 136, 147);
            pontos[id_player] += 7;
            if (historico[id_player] != '#') {
              historico[id_player] = '#';
              n_player++;
            }
            historico[id_player] = saida[0];
            jogadas++;
          } else {
            printf("\nVoc%c ganhou 2 pontos!", 136);
            pontos[id_player] += 2;
            n_player++;
            jogadas++;
          }
          valida[p_jog[0][0]][p_jog[0][1]] = 1;
          valida[p_jog[1][0]][p_jog[1][1]] = 1;
          final++;
        }
        getchar();
      } else {
        if ((p_jog[0][0] == p_jog[1][0] && p_jog[0][1] == p_jog[1][1]) || valida[p_jog[0][0]][p_jog[0][1]] == 1 || valida[p_jog[1][0]][p_jog[1][1]] == 1) {
          printf("\nJogada inv%clida! As posi%c%ces s%co iguais, ou j%c foram jogadas.", 160, 135, 228, 198, 160);
        } else {
          printf("\nVoc%c perdeu", 136);
          jogadas++;
          if (saida[0] == '@') {
            pontos[id_player] -= 4;
            printf(" 4 pontos");
          }
          if (saida[0] == '$') {
            pontos[id_player] -= 7;
            printf(" 7 pontos");
          }
          printf("!");
          n_player++;
        }
        if (valida[p_jog[0][0]][p_jog[0][1]] == 0)
          exibicao[p_jog[0][0]][p_jog[0][1]] = 178;
        if (valida[p_jog[1][0]][p_jog[1][1]] == 0)
          exibicao[p_jog[1][0]][p_jog[1][1]] = 178;
        getchar();
      }
    }
  }
  finaliza(pontos, jogadas);
}
```