private static void write(String s, DataTag obj){
		try {

			File theDir = new File("saves/"+s+".json");
			theDir.getParentFile().mkdirs();

			FileWriter file = new FileWriter(theDir);
			file.write(obj.toString());
			file.flush();
			file.close();

		} catch (IOException e) {
			e.printStackTrace();
		}
	}