function noMatch(array, item) {
  $.each(array, function(index, value) {
    setTimeout(function() {
      $('.clicked').css({'background-color': 'red'})
      .addClass('animated swing');
      }, 600); 
  
    setTimeout(function() {
      $('.'+value).parent().removeClass('open show animated rotateIn swing')
      .css({'background-color': ''});
      array.splice(0, 2);
      }, 1100);

    setTimeout(function() {
      $('.'+value).parent().css({'transition': '', 'transform': ''})
      .removeClass('clicked');
      }, 1600);
  });

  trackScore();
}
/*
 * If the cards don't match, set background color (via .clicked class)
 *   - Remove transition, transform and bg-color on specific intervals
 *   - Empty array of clicked cards
 *   - Update score (moves + rating)
 */
If the cards don't match, set background color (via .clicked class)
- Remove transition, transform and bg-color on specific intervals
- Empty array of clicked cards
- Update score (moves + rating)
If the cards don ' t match set background color ( via . clicked class ) - Remove transition transform and bg - color on specific intervals - Empty array of clicked cards - Update score ( moves + rating )
function noMatch(array, item) {
  $.each(array, function(index, value) {
    setTimeout(function() {
      $('.clicked').css({'background-color': 'red'})
      .addClass('animated swing');
      }, 600); 
    setTimeout(function() {
      $('.'+value).parent().removeClass('open show animated rotateIn swing')
      .css({'background-color': ''});
      array.splice(0, 2);
      }, 1100);
    setTimeout(function() {
      $('.'+value).parent().css({'transition': '', 'transform': ''})
      .removeClass('clicked');
      }, 1600);
  });
  trackScore();
}
function noMatch ( array , item ) { $ . each ( array , function ( index , value ) { setTimeout ( function ( ) { $ ( '.clicked' ) . css ( { 'background-color' : 'red' } ) . addClass ( 'animated swing' ) ; } , 600 ) ; setTimeout ( function ( ) { $ ( '.' + value ) . parent ( ) . removeClass ( 'open show animated rotateIn swing' ) . css ( { 'background-color' : '' } ) ; array . splice ( 0 , 2 ) ; } , 1100 ) ; setTimeout ( function ( ) { $ ( '.' + value ) . parent ( ) . css ( { 'transition' : '' , 'transform' : '' } ) . removeClass ( 'clicked' ) ; } , 1600 ) ; } ) ; trackScore ( ) ; }
If the cards don't match, set background color (via .clicked class)
   - Remove transition, transform and bg-color on specific intervals
   - Empty array of clicked cards
   - Update score (moves + rating)
If the cards don ' t match set background color ( via . clicked class ) - Remove transition transform and bg - color on specific intervals - Empty array of clicked cards - Update score ( moves + rating )