title: Diagonal win checks in Connect 4
body: <p>I am developing a Connect 4 game with 7x7 fields, horizontal and vertical checks but I dont get diagonal checks works</p>
  
  <p>I can win as long as one of the tokens is not in the last column.</p>
  
  <p>This are all checks:</p>
  
  <pre><code>private static int getWinningInDiagonals() {
  
      // Top-Left -&gt; Bottom-Right
      for (int column = 0; column &lt; 7; column++) {
          int count = 0;
          for (int row = 0; row &lt; 7; row++) {
              if (field[row][column] != 0 &amp;&amp; field[row+1][column + row - 1] == field[row][column])
                  count++;
              else
                  count = 1;
              if (count &gt;= 4) {
                  return field[row][column];
              }                   
          }
      }
      // Top-Right -&gt; Bottom-Left
      for (int column = 0; column &lt; 7; column++) {
          int count = 0;
          for (int row = 0; row &lt; 7; row++) {
              if (field[row][column] != 0 &amp;&amp; field[row+1][column - row + 1] == field[row][column])
                  count++;
              else
                  count = 1;
              if (count &gt;= 4) {
                  return field[row][column];
              }
          }
      }        
      return 0;
  }
  </code></pre>