title: How to check in 2d array if four elements in row and column are the same?
body: <p>I'm trying to get a nested forEach loop, that find a pair of four in a two dimensional array.</p>
  
  <p>Here a example how my array looks like:</p>
  
  <pre><code>[0, 0, 0, 0, 0],
  [0, 2, 0, 0, 0],
  [0, 1, 2, 0, 0],
  [0, 1, 2, 2, 0],
  [1, 2, 1, 1, 2],
  </code></pre>
  
  <p>It should ignore the 0 and only find horizontal, vertical and diagonal pairs of four of entries with '1' or '2'.</p>
  
  <p>Does anybody have any suggestion?</p>