private Color getRandomColor(int row,int col) {
	        // 70% of the time we select a hallway
	        int next = colorGen.nextInt(30);
	        if (next <=28) {
	            return UNEXPLORED;
	        }
	         
	        int mazetype = colorGen.nextInt(5);
	        int mazedirect = colorGen.nextInt(99);
	        int border =  colorGen.nextInt(1);
	        if(mazedirect % 2 == 1)
	        {   
	             
	            for(int i = 0; i<= mazetype;i++)
	            {
	                try
	            {
	                grid[row+i][col + border].setBackground(WALL);
	            }
	            catch(Exception e)
	            {
	                 
	            }
	            }
	         
	        }
	        else
	        {
	             
	            for(int i = 0; i<= mazetype;i++)
	            {
	                try
	                {
	                grid[row+ border][col+i].setBackground(WALL);
	                }
	                catch(Exception e)
	                {
	                    continue;
	                }
	            }
	         
	            }
	         
	        return WALL;
	    }