private void buildGameDatabase() {
		ArrayList<String> goodRoms = new ArrayList<String>();
		ArrayList<String> bestRoms = new ArrayList<String>();
		ArrayList<String> badRoms = new ArrayList<String>();
		TreeSet<String> tmp = new TreeSet<String>();

		sortMameExecs();

		for (MameExecutable i : mameExecutables) {
			badRoms.add("### Mame Executable = " + i.getPath());
			ArrayList<String> lines = FileIO.getProcessOutput(i.getPath()
					+ " -verifyroms -inipath " + i.getIniPath(), false);
			for (String line : lines) {
				if (line.contains("good") && tmp.add(line)) {
					goodRoms.add(line + "," + i.getPath());
				} else if (line.contains("best") && tmp.add(line)) {
					bestRoms.add(line + "," + i.getPath());
				} else if (tmp.add(line.replace(" ", ""))
						&& (!line.contains("best") && !line.contains("good"))) {
					badRoms.add(line);
				}

			}
		}
		FileIO.writeTofile(goodRoms, goodGames, false);
		FileIO.writeTofile(bestRoms, bestGames, false);
		FileIO.writeTofile(badRoms, badGames, false);
	}