Timer Stops after I drop the first item

Timer Stops after I drop the first item

Im trying to do a drag and drop game..but when the user drops the first item correctly, the timer stops even though the other items aren't finished yet. 

here is the code

  1. $(window).load(function(){
  2.     var timer;
  3.     var done = true;
  4.     var winner = 0;
  5.     $("#startClock").click( function(){
  6.         var counter = 60;
  7.         $("#1, #2, #3, #4, #5, #6, #7, #8, #9, #10").draggable({
  8.         revert: "invalid", containment: "#wrapper",
  9.         start: function(event, ui){
  10.             if(!done) return false;
  11.         },
  12.         stop: function(event, ui){
  13.             if($(".correct").length == $(".drop").length){
  14.                 setTimeout(function(){
  15.                     $("<div id='goodJob' title='Excellent!'><a class='btn button' href='sample.html'>Next Level</a></div>").dialog();
  16.                 },500);
  17.                 winner = 1;
  18.                 clearInterval(timer);
  19.                 $('#win')[0].play();
  20.             }
  21.         }
  22.         });
  23.         if(!timer){
  24.           timer = setInterval(function() {
  25.              counter--;
  26.              if (counter >= 0) {
  27.                $("#count").text(counter);
  28.              }
  29.              if (counter === 0 && winner === 0) {
  30.                $("<div title='You lose!'><a class='btn button' href='sample.html'>Next Level</a></div></div>").dialog();
  31.                clearInterval(timer);
  32.                 $('#fail')[0].play();
  33.              }
  34.            }, 1000);
  35.         }
  36.     });

  37.     $("#1Drop").droppable({
  38.         accept: "#1", tolerance: "fit",
  39.         drop: function(event, ui) {
  40.             if(ui.draggable.is("#1")){
  41.                 $(this).addClass("correct").find("p").html("correct!");
  42.                 done = false;
  43.                 ui.draggable.fadeOut(500);
  44.                 $(this).fadeOut(500,function(){
  45.                     done = true;
  46.                 });
  47.             }
  48.         }
  49.     });
  50.     $("#2Drop").droppable({
  51.         accept: "#2", tolerance: "fit",
  52.         drop: function(event, ui) {
  53.             if(ui.draggable.is("#2")){
  54.                 $(this).addClass("correct").find("p").html("correct!");
  55.                 done = false;
  56.                 ui.draggable.fadeOut(500);
  57.                 $(this).fadeOut(500,function(){
  58.                     done = true;
  59.                 });
  60.             }
  61.         }
  62.     });
  63.     $("#3Drop").droppable({
  64.         accept: "#3", tolerance: "fit",
  65.         drop: function(event, ui) {
  66.             if(ui.draggable.is("#3")){
  67.                 $(this).addClass("correct").find("p").html("correct!");
  68.                 done = false;
  69.                 ui.draggable.fadeOut(500);
  70.                 $(this).fadeOut(500,function(){
  71.                     done = true;
  72.                 });
  73.             }
  74.         }
  75.     });