title: Tic-Tac-Toe game glitch
body: <p>Can someone... anyone, help me figure out why when the 'fourCorners' function is activated, it fills in 2 boxes instead of one. Any assistance would be greatly appreciated.</p>
  
  <p>Here's a link to my code: <a href="https://codepen.io/DRick504/pen/bRGgRJ" rel="nofollow noreferrer">https://codepen.io/DRick504/pen/bRGgRJ</a></p>
  
  <pre><code>  function fourCorners() {
  
      var compArr = [3,0,2,1]
  
      var compNextMove = compArr[num]
  
       $('#players').text(num)
  
      if (num===4) {
  
        return false;
  
      } else if (compNextMove===0 &amp;&amp; $('#one').is(':empty')) {
  
        $('#one').text(opp)
        $('#one').slideDown(800)
  
      } else if (compNextMove===1 &amp;&amp; $('#three').is(':empty')) {
  
        $('#three').text(opp)
        $('#three').slideDown(800)
  
      } else if (compNextMove===2 &amp;&amp; $('#seven').is(':empty')) {
  
        $('#seven').text(opp)
        $('#seven').slideDown(800)
  
      } else if (compNextMove===3 &amp;&amp; $('#nine').is(':empty')) {
  
        $('#nine').text(opp)
        $('#nine').slideDown(800)
  
      }
  
    num=num+1
  
  }
  </code></pre>