function endGame() {
  if (countersX == 0) {
    $(`#message`).off().html(`Game Ended! X lost all thir counters!!`)
  } else if (countersY == 0) {
    $(`#message`).off().html(`Game Ended! Y lost all their counters!!`)
  }
  $(`#logo`).show();
  $(`.gamePlay`).hide(1000);
  $(`.gameOver`).show(1000);
}
/**
 * @function endGame - Ends the game if the number of counters for a player reaches 0
 */
@function endGame - Ends the game if the number of counters for a player reaches 0
@function endGame - Ends the game if the number of counters for a player reaches 0
function endGame() {
  if (countersX == 0) {
    $(`#message`).off().html(`Game Ended! X lost all thir counters!!`)
  } else if (countersY == 0) {
    $(`#message`).off().html(`Game Ended! Y lost all their counters!!`)
  }
  $(`#logo`).show();
  $(`.gamePlay`).hide(1000);
  $(`.gameOver`).show(1000);
}
function endGame ( ) { if ( countersX == 0 ) { $ ( ` ` ) . off ( ) . html ( ` ` ) } else if ( countersY == 0 ) { $ ( ` ` ) . off ( ) . html ( ` ` ) } $ ( ` ` ) . show ( ) ; $ ( ` ` ) . hide ( 1000 ) ; $ ( ` ` ) . show ( 1000 ) ; }
@function endGame - Ends the game if the number of counters for a player reaches 0
@function endGame - Ends the game if the number of counters for a player reaches 0