public static void main (String[]args){
        GenerateLevel lev = new GenerateLevel("C:\\My Documents\\map.txt");
            Level[]array = lev.getLevels();
            TermQ newTerm = new TermQ(2,2);
            newTerm.setLevel(3);
            newTerm.setParent(null);
            QueueAlgorithmFllow x = new QueueAlgorithmFllow();
            TermQ answer = x.QueueAlgoPath(array,newTerm);
            autoSolve solve = new autoSolve();
           solve.makePath(array, answer);
           boolean[][][]ans=solve.path;
           int l=0;
           //while(!solve.s.isEmpty()){
while(l<ans.length){
     //   int rand=(int) (5 * Math.random());
        	  // l=(Integer) solve.s.pop();
                   System.out.println(l);
		if(ans[l]!=null){
       boolean[][]currLevel=ans[l];

        for(int i=0;i<currLevel.length;i++)
        {
            for(int j=0;j<currLevel.length;j++)
            {
       System.out.print(currLevel[i][j]+" ");
            }
            System.out.println("");
        }
        System.out.println("----------------------------");

	}
l++;
           }
           
    }