private boolean checkOwnWin(int[][] matrix, int owner) {

        for (int i : validemoves) {
            if (getScoreHorizontal(matrix, i, owner) >= 100000 || getScoreVertical(matrix, i, owner) >= 100000
                    || getScoreDiag1(matrix, i, owner) >= 100000 || getScoreDiag2(matrix, i, owner) >= 100000) {
                value = 1000000;
                bestmove = i;
                //System.out.println("Gewinnspalte KI: "+i);
                return true;
            }
        }
        return false;
    }