public static void testCut(){
        TiliaCollection collection = new TiliaCollection(200,42);

        HashMap<Integer, HashMap<Tilia,Integer>> correct = correctCut(collection);
        int count = 0;
        boolean isCorrectSolution = true;

        for (int j = 100 ; j <= 200; j+=10){
            for (int i = 10 ; i < 40; i+=5){
                Tilia test = collection.getGrid(j);
                ArrayList<Tilia> ok = test.cut(i);
                HashMap<Tilia,Integer> map = new HashMap<Tilia,Integer>();

                for (Tilia x: ok){
                    if (map.containsKey(x)){
                        map.put(x, map.get(x)+1);
                    }else{
                        map.put(x, 1);
                    }
                }
                //System.out.println("correct.put("+count+",new HashMap<Tilia, Integer>());");
                for (Tilia x: map.keySet()){
                    isCorrectSolution =  isCorrectSolution && (correct.get(count).get(x) == map.get(x));
                   // System.out.println("correct.get("+count+").put(collection.getGrid("+x.getSide()+"),"+map.get(x)+");");
                }
                count++;
            }
        }
        System.out.println("Correct cuts for these cases? "+isCorrectSolution);
    }