public DefaultMutableTreeNode buildTree() {
		DefaultMutableTreeNode root;
		DefaultMutableTreeNode grandparent;
		DefaultMutableTreeNode parent;
		
		root = new DefaultMutableTreeNode("Sprites");
		
		try {
			BufferedReader reader = new BufferedReader(new FileReader(System.getProperty("resources") + "/database/sprites"));
			String line;
			while((line = reader.readLine()) != null) {
				if(line.startsWith("-") && line.endsWith("-")) {
					grandparent = new DefaultMutableTreeNode(line);
					while((line = reader.readLine()) != null && !line.matches("")) {
						parent = new DefaultMutableTreeNode(line);
						grandparent.add(parent);
					}
					root.add(grandparent);
				}
			}
			reader.close();
		} catch (FileNotFoundException e) {
			System.out.println("The item database has been misplaced!");
			e.printStackTrace();
		} catch (IOException e) {
			System.out.println("Item database failed to load!");
			e.printStackTrace();
		}
		
		return root;
	}