public void discoverWeb(String root) {
		
		//BFS algorithm is implemented below
		this.queue.add(root);
		this.discoveredWebsiteList.add(root);

		while (!queue.isEmpty()) {

			String v = this.queue.remove();
			String rowHtml = readURL(v);  // read the html content of the newly found website

			String regexp = "https://(\\w+\\.)*(\\w+)";  // reg exp for url pattern starting with https://
			Pattern pattern = Pattern.compile(regexp);
			Matcher matcher = pattern.matcher(rowHtml);  // search for pattern in the html content
			
			while( matcher.find() ){  
				String w = matcher.group();  //group() -> Returns the input subsequence matched by the previous match.
				
				if( !discoveredWebsiteList.contains(w) ){
					discoveredWebsiteList.add(w);
					System.out.println("Website found with URL: " + w);
					queue.add(w);
				}
			}
			
			websitesProcessedFromQueue++;
			if (websitesProcessedFromQueue == 10) {
				break;  // stop condition: stop after processing children of first 10 websites from queue
			}
		}
	}