public static void clonemap()			
			 {
				 try{
				
				 for (int i =0; i < breath; i++)
				 {
					 for (int j = 0; j<length; j++)
					 {
						 maze[i][j] = Integer.parseInt(m.labels[i][j].getText());
					 }
				 }
				 
				 }
				 catch(Exception e)					// incase label do not work
				 {
					 for (int i =0; i < breath; i++)
					 {
						 for (int j = 0; j<length; j++)
						 {
							 
							 if(m.grid[i][j].getBackground() == Color.black)
							 {
								 maze[i][j] = -1;
							 }
							 else
							 {
								 maze[i][j]=0;
							 }
							
						 }
					 }
				 }
				 
				 print();
				 
			 }