private Color genericDiagnol(int i, int direction) {
        for (int j = 0; j <= board[0].length - 4; j++) {
            Color current = board[i][j];
            if (current.isNotNone()) {
                boolean success = true;
                for (int k = 1; k < 4; k++) {
                    if (board[i + k * direction][j + k] != current) {
                        success = false;
                        break;
                    }
                }
                if (success) {
                    return current;
                }
            }
        }
        return Color.NONE;
    }