title: Trivia Game not scoring correctly
body: <p>So as I'm learning, I've been tasked with creating a Trivia Game. I really thought I was on the right track. The problem is, when I click "done" on my game, no matter the answers. They all come back incorrect. I'm not sure where the flaw is in my coding. If someone could point out the error that would be amazing.</p>
  
  <pre><code>$('#start').on('click', function(){
  game.start();
  })
  
  $(document).on('click','#end',function(){
  game.done();
  })
  
  var questions = [{
  question:"The Fantastic Four have their headquarters in what building?",
  answers:["Stark Tower","Fantastic Headquarters","Baxter Building","Xavier Insitute"],
  correctAnswer:"Baxter Building",
  }, {
  question:"Peter Parker works as a photographer for?",
  answers:["The Daily Planet","The Daily Bugle","New York Times","The Daily Rag"],
  correctAnswer:"The Daily Bugle"
  }, {
  question:"S.H.I.E.L.D.'s highest ranking agent is?",
  answers:["Nick Fury","Captain America","Natalia Romanova","Peter Parker"],
  correctAnswer:"Nick Fury"
  }, {
  question:"What vehicle is the Avengers primary mode of transport?",
  answers:["A bus","The Quinjet","The Blackbird","The Blackhawk"],
  correctAnswer:"The Quinjet"
  }, {
  question:"Ghost Rider is also known as?",
  answers:["The Guardian Devil","The Spirit of Hate","The Spirit of Vengeance","The Red Skull"],
  correctAnswer:"The Spirit of Vengeance"
  }];
  
  var game = {
  correct: 0,
  incorrect: 0,
  counter: 10,
  countdown: function(){
      game.counter--;
      $('#counter').html(game.counter);
      if(game.counter&lt;=0){
          console.log("Time is up!");
          game.done();
      }
  },
  start: function(){
          timer = setInterval(game.countdown,1000);
          $('#wra').prepend('&lt;h2&gt;Time Remaining: &lt;span id ="counter"&gt;120&lt;/span&gt; Seconds &lt;/h2')
          for (var i=0;i&lt;questions.length;i++){
              $('#wrap').append('&lt;h2&gt;'+questions[i].question+'&lt;/h2');
              for(var j = 0; j&lt;questions[i].answers.length;j++){
              $("#wrap").append("&lt;input type = 'radio' name =  'question-" +i+"' value = '"+questions[i].answers[j]+" '&gt; "+questions[i].answers[j])
          }
      }
      $('#wrap').append('&lt;br&gt;&lt;button id="end"&gt;DONE&lt;/button&gt;')
  },
  done: function(){
      $.each($('input[name="question-0"]:checked'), function(){
          if($(this).val()===questions[0].correctAnswer){
              game.correct++;
          } else {
              game.incorrect++;
          }
      });
  
      $.each($('input[name="question-1"]:checked'), function(){
          if($(this).val()===questions[1].correctAnswer){
              game.correct++;
          } else {
              game.incorrect++;
          }
      });
  
      $.each($('input[name="question-2"]:checked'), function(){
          if($(this).val()===questions[2].correctAnswer){
              game.correct++;
          } else {
              game.incorrect++;
          }
      });
  
      $.each($('input[name="question-3"]:checked'), function(){
          if($(this).val()===questions[3].correctAnswer){
              game.correct++;
          } else {
              game.incorrect++;
          }
      });
  
      $.each($('input[name="question-4"]:checked'), function(){
          if($(this).val()===questions[4].correctAnswer){
              game.correct++;
          } else {
              game.incorrect++;
          }
      });
  
      this.result();
  },
  
  result: function(){
      clearInterval(timer);
      $('#wrap h2').remove();
      $('#wrap').html("&lt;h2&gt;All done!&lt;/h2&gt;");
      $('#wrap').append("&lt;h3&gt;Correct Answers: " + this.correct + "&lt;/h3&gt;");
      $('#wrap').append("&lt;h3&gt;Incorrect Answers: " + this.incorrect + "&lt;/h3&gt;");
      $('#wrap').append("&lt;h3&gt;Unanswered Questions: " + (questions.length-(this.incorrect+this.correct)) + "&lt;/h3&gt;");
  
  }
  </code></pre>
  
  <p>}</p>