private int[] checkValideMoves(int[][] matrix) {
        //ANZAHL gültiger züge ermittlen
        int counter = 0;
        for (int i = 0; i < 7; i++) {
            if (validateMove(matrix, i)) {
                counter++;
            }
        }

        int[] tempValidemoves = new int[counter];
        int arraypos = 0;
        for (int i = 0; i < 7; i++) {
            if (validateMove(matrix, i)) {
                tempValidemoves[arraypos] = i;
                arraypos++;
            }
        }
        return tempValidemoves;
    }