title: 2D array dimentions and traversing
body: <p>what the method is trying to do is to, return the number of correct picks per ticket when compared to the draw, ticket variable is a 2D array.</p>
  
  <pre><code> private int[] lottoMatches(int[] draw, int[][] ticket)
      {
          // TODO
          List&lt;int&gt; finalresult = new List&lt;int&gt;();
          for(int r = 0; r &lt; ticket.GetLength(0); r++)
          {
              int drw = 0, tck = 0;
              List&lt;int&gt; result = new List&lt;int&gt;();
              while (drw &lt; draw.Length &amp;&amp; tck &lt; ticket.GetLength(1))
              {
                  if (ticket[r][tck] == draw[drw])
                  {
                      result.Add(ticket[r][tck]);
                  }
                  else
                  {
                      drw++;
                  }
                  if (drw == draw.Length &amp;&amp; tck &lt; ticket.Length)
                  {
                      tck++;
                      drw = 0;
                  }
              }
              finalresult.Add(result.Count);
          }
          return finalresult.ToArray();
      }
  </code></pre>
  
  <p>Index was outside the bounds of the array.' error is returned when run, ticket.GetLength(1) is identified to be the cause</p>