$(document).ready(function() {
  var deck = new Deck();
  deck.populateDeck();
  game = new Game(deck);
  game.startGame();

  count = 0;
  $(".cell").on("click", function(e){
    e.preventDefault();
    if(count < 1) {
      $('.clicked').html("").removeClass('clicked');
      $(this).addClass("clicked");
      firstVal = $(this).attr("value");
      $(this).html(firstVal);
      count++;
    } else {
      $(this).addClass("clicked");
      var secondVal = $(this).attr("value");
      $(this).html(secondVal);
      if (game.compareCards(firstVal,secondVal)){
        $('.clicked').removeClass('clicked').addClass('matched');
      }
      count = 0;
    }
  })


});

@@ -620,24 +620,55 @@
 s('matched')
+.css('background-color', 'red')
 ;%0A      %7D%0A  
@@ -694,12 +694,161 @@
 %7D%0A  
+ if($('.matched').length == 20) %7B%0A    alert(%22Game Over!%22);%0A    $('.matched').removeClass('matched').html('').css('background-color', 'white');%0A    %7D%0A  
 %7D)
-%0A%0A
 %0A%7D);

add alert and matched color