public void populateList() { 
		dic = new HashMap<>();
		
		ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
		if(Settings.level == 1){input = classLoader.getResourceAsStream("oneLetterWords.txt");}
		else if(Settings.level == 2){input = classLoader.getResourceAsStream("twoLetterWords.txt");}
		else if(Settings.level == 3){input = classLoader.getResourceAsStream("threeLetterWords.txt");}
		else if(Settings.level == 4){input = classLoader.getResourceAsStream("fourLetterWords.txt");}
		else if(Settings.level == 5){input = classLoader.getResourceAsStream("fiveLetterWords.txt");}
		else if(Settings.level == 6){input = classLoader.getResourceAsStream("sixLetterWords.txt");}
		else if(Settings.level == 7){input = classLoader.getResourceAsStream("noLimitWords.txt");}
		
			// This scans through the word file and for each line it adds a new entry to the HashMap and gives it a sequential number.
		    try (Scanner scanner =  new Scanner(input)){
		    	Integer i = 0; 
		    	while (scanner.hasNextLine()){
		    		dic.put(i, scanner.nextLine());
		    		i++;
		    	}      
		    } catch (Exception e) {
				e.printStackTrace();
			}	
	}