private void loadStacks(BufferedReader br, String line) throws IOException{
		String[] stackNames = line.split(",");
		for(int i=1; i<stackNames.length; i++){
			if(stackNames[i].length()>0)
				stackMap.put(i, new Stack(stackNames[i]));
		}
		
		line=br.readLine();
		
		while((line=br.readLine()).length()>1 && !line.split(",")[0].equals(Names.STACKS_END)){
			String[] lineItems = line.split(",");
			for(int i=1; i<lineItems.length; i++){

				if(!materialMap.containsKey(lineItems[0])){
					JOptionPane.showMessageDialog(null, "Material "+lineItems[0]+" was not found.");
					System.exit(0);
				}
				
				if(lineItems[i].length()>0){
					Layer layer = new Layer(lineItems[0],materialMap.get(lineItems[0]),new Double(lineItems[i]));
					stackMap.get(i).addLayer(layer);
				}
			}
		}
		
		
	}