Detect diagonal in matrix in Java (victory in Connect Four game) I’m making a Connect 4 game. The objective is to align four items the same way.