function turnOppostionCountersOff() {
  // If player is player 1, they are counter X. Therefore need to disable Y counters.
  if (myId == player1ID) {
    $(`#assignCounter`).off().html(`You are counter: "X"`)
    $(`input[type="button"][value="YY"]`).prop(`disabled`, true)
    $(`input[type="button"][value="Y"]`).prop(`disabled`, true)
    $(`input[type="button"][value="XX"]`).prop(`disabled`, false)
    $(`input[type="button"][value="X"]`).prop(`disabled`, false)
    $(`input[type="button"][value="  "]`).prop(`disabled`, false)

    // If player is player 2, they are counter Y. Therefore need to disable X counters.
  } else if (myId == player2ID) {
    $(`#assignCounter`).off().html(`You are counter: "Y"`)
    $(`input[type="button"][value="XX"]`).prop(`disabled`, true)
    $(`input[type="button"][value="X"]`).prop(`disabled`, true)
    $(`input[type="button"][value="YY"]`).prop(`disabled`, false)
    $(`input[type="button"][value="Y"]`).prop(`disabled`, false)
    $(`input[type="button"][value="  "]`).prop(`disabled`, false)
  }
}
/**
 * @function turnOppostionCountersOff - disables oppostion counters so that the player can only make moves with thier counters
 */
@function turnOppostionCountersOff - disables oppostion counters so that the player can only make moves with thier counters
@function turnOppostionCountersOff - disables oppostion counters so that the player can only make moves with thier counters
function turnOppostionCountersOff() {
  if (myId == player1ID) {
    $(`#assignCounter`).off().html(`You are counter: "X"`)
    $(`input[type="button"][value="YY"]`).prop(`disabled`, true)
    $(`input[type="button"][value="Y"]`).prop(`disabled`, true)
    $(`input[type="button"][value="XX"]`).prop(`disabled`, false)
    $(`input[type="button"][value="X"]`).prop(`disabled`, false)
    $(`input[type="button"][value="  "]`).prop(`disabled`, false)
  } else if (myId == player2ID) {
    $(`#assignCounter`).off().html(`You are counter: "Y"`)
    $(`input[type="button"][value="XX"]`).prop(`disabled`, true)
    $(`input[type="button"][value="X"]`).prop(`disabled`, true)
    $(`input[type="button"][value="YY"]`).prop(`disabled`, false)
    $(`input[type="button"][value="Y"]`).prop(`disabled`, false)
    $(`input[type="button"][value="  "]`).prop(`disabled`, false)
  }
}
function turnOppostionCountersOff ( ) { if ( myId == player1ID ) { $ ( ` ` ) . off ( ) . html ( ` ` ) $ ( ` ` ) . prop ( ` ` , true ) $ ( ` ` ) . prop ( ` ` , true ) $ ( ` ` ) . prop ( ` ` , false ) $ ( ` ` ) . prop ( ` ` , false ) $ ( ` ` ) . prop ( ` ` , false ) } else if ( myId == player2ID ) { $ ( ` ` ) . off ( ) . html ( ` ` ) $ ( ` ` ) . prop ( ` ` , true ) $ ( ` ` ) . prop ( ` ` , true ) $ ( ` ` ) . prop ( ` ` , false ) $ ( ` ` ) . prop ( ` ` , false ) $ ( ` ` ) . prop ( ` ` , false ) } }
@function turnOppostionCountersOff - disables oppostion counters so that the player can only make moves with thier counters
@function turnOppostionCountersOff - disables oppostion counters so that the player can only make moves with thier counters
// If player is player 1, they are counter X. Therefore need to disable Y counters. // If player is player 2, they are counter Y. Therefore need to disable X counters.