first of all i'm pretty new to JS.
i'm trying to make a memory game but i have the next problem.
the code :

```
function cardClicked(elCard) {
  // If the user clicked an already flipped card - do nothing and return from the function
  if (elCard.classList.contains('flipped')) {
    return;
  }
  // Flip it
  elCard.classList.add('flipped');

  // This is a first card, only keep it in the global variable
  if (elPreviousCard === null) {
    elPreviousCard = elCard;

  } else {
    // get the data-card attribute's value from both cards
    var card1 = elPreviousCard.getAttribute('data-card');
    var card2 = elCard.getAttribute('data-card');
    // No match, schedule to flip them back in 1 second
    if (card1 !== card2) {

        setTimeout(function () {
            elCard.classList.remove('flipped');
            elPreviousCard.classList.remove('flipped');
            elPreviousCard = null;
        }, 1000)
        wrongPick.play();
    } else {
        // Yes! a match!
        flippedCouplesCount++;
        elPreviousCard = null;
        rightPick.play();
    }
}

```

---

i would like to prevent the user from clicking more then two times (it's a memory game.) can someone tell me how can i implement this into my code please?