public ArrayList<ArrayList<Integer>> DelAgrIntsbyloc(ArrayList<ArrayList<Integer>> agrints, String correctnums) {
        ArrayList<ArrayList<Integer>> allints = new ArrayList<ArrayList<Integer>>();
        Iterator<ArrayList<Integer>> iter = agrints.iterator();
        String str = correctnums;
        int a = Integer.valueOf(str.substring(0, 1));
        int b = Integer.valueOf(str.substring(1, 2));
        int c = Integer.valueOf(str.substring(2, 3));
        int d = Integer.valueOf(str.substring(3, 4));

        int i = 1;

        while (iter.hasNext()) {
            if (i == 1 || i == 5) {
                allints.add(DelIntsbyloc(iter.next(), a));
            } else if (i == 2 || i == 6) {
                allints.add(DelIntsbyloc(iter.next(), b));
            } else if (i == 3 || i == 7) {
                allints.add(DelIntsbyloc(iter.next(), c));
            } else if (i == 4 || i == 8) {
                allints.add(DelIntsbyloc(iter.next(), d));
            }
            i++;
        }
        //System.out.println(allints);
        return allints;
    }