title: JavaScript not drawing correctly from a multidimensional array
body: <p>I am drawing circles from a specific place in a javascript array that has 3 dimensions (i think). I am drawing them using 2 levels of for loops, The first one handles the x coordinate for the circles and the second handles the y coordinates for the circles and then passes in the colour of the circle from the array (the array only contains their colour values) and passes them into the <code>Circle</code> function which just draws them from the x,y,colour and radius values. My code however only seems to draw one or doesn't seem the recognise the 3rd dimension in the array. The code is as follows:</p>
  
  <pre><code>//define the sequence of lights
  var lightSequence = [[["red",'darkOrange','darkGreen','other'],["red",'darkOrange','darkGreen','other']],[['red',"orange",'darkGreen'],['red',"orange",'darkGreen']],[['darkRed','darkOrange',"green"],['darkRed','darkOrange',"green"]],[['darkRed',"orange",'darkGreen'],['darkRed',"orange",'darkGreen']]];
  //draw all of the traffic lights from the array
  for (var xMove = 0; xMove &lt; lightSequence[i].length; xMove ++) {
      console.log(lightSequence[i][xMove]);
      for (var value = 0; value &lt; lightSequence[i][xMove].length; value ++) {
          circle(xPos + (radius*(xMove * 2))+ (spacing * (xMove)), startY + (radius*(value * 2)) + (spacing * (value)), radius, lightSequence[i][xMove][value]);
          console.log([i][xMove][value]);
      }
  }
  </code></pre>
  
  <p>The lights go in a sequence which is controlled by <code>i</code> so <code>[["red",'darkOrange','darkGreen','other'],["red",'darkOrange','darkGreen','other']]</code> is one single draw in the sequence and should draw 2 columns of 4 lights but all of the sections of the sequence seem to draw just one light (the last one in the array to be specific) but I don't know why. <code>xMove</code> controls the x Axis of the array and for drawing and <code>value</code> controls the y Axis of the array and for drawing the lights. </p>