I have a 2D array of Integers that represents a game board

given an XY coordinate, I need to examine the board and see if there a 4 adjacent cells with the same value.

example

```
1234
5678
9ABC
DEFG
```

if the provided coordinates point to cell 5 I would want to examine all these adjacent cells

if 5,6,9,A all contain the same value, I’m done

otherwise I need to check 1,2,4,5, then 3,4,6,7, then 8,9,C,D etc every combination of 4 cells until either I find a set with the same values, or run out of combos

not sure I explained this very well