title: Creating multiple objects with same variables
body: <p>I cannot figure out how to create several objects from the main object</p>
  
  <p>Here is what i am trying to do:</p>
  
  <pre><code>var player = {
      var totalScore = 0;
      var playing = true;
      function checkScore() {
         if (totalScore &gt;= 100) {
              playing = false;
         }
      };
  };
  
  player playerAI = new player();
  player playerOne = new player();
  </code></pre>