Im am using a matrix to make a connect four game, when player1 selects a position the value is changed to 1, when player2 selects ithe value becomes 2, Can someone PLEASE tell me how i can test when the player has won the game, either by have four diagonally,vertically, or horizontally.

Thanks in advance!!