function restartGame(){
  cardsCollection = [];
  cards = [];
  matchedCards = 0;
  moves = 0;
  rating = 3;
  comboCounter = 0;
  updateRating(0);
  updateMoves(0);
  resetDeck();
  createDeck();
  resetTimer();
}
// Reset all variables to initial value, remove cards HTML and create new set, reset timer.
Reset all variables to initial value, remove cards HTML and create new set, reset timer.
Reset all variables to initial value remove cards HTML and create new set reset timer .
function restartGame(){
  cardsCollection = [];
  cards = [];
  matchedCards = 0;
  moves = 0;
  rating = 3;
  comboCounter = 0;
  updateRating(0);
  updateMoves(0);
  resetDeck();
  createDeck();
  resetTimer();
}
function restartGame ( ) { cardsCollection = [ ] ; cards = [ ] ; matchedCards = 0 ; moves = 0 ; rating = 3 ; comboCounter = 0 ; updateRating ( 0 ) ; updateMoves ( 0 ) ; resetDeck ( ) ; createDeck ( ) ; resetTimer ( ) ; }
Reset all variables to initial value, remove cards HTML and create new set, reset timer.
Reset all variables to initial value remove cards HTML and create new set reset timer .