public ArrayList<Map> getSaves() {
		HashMap<String, Map> HMSaves = new HashMap<String, Map>();
		ObjectInputStream ois;
		Object objTemp = null;
		File directory = new File("saves");
		File[] list = directory.listFiles();
		for (int i = 0; i < list.length; i++) {
			if (list[i].getName().endsWith(".savj"))
				try {
					ois = new ObjectInputStream(new FileInputStream("saves/" + list[i].getName()));
					try {
						objTemp = ois.readObject();
					} 
					catch (ClassCastException cce) {
						File save = new File("saves/" + list[i].getName() + ".savj");
						save.delete();
					} 
					catch (ClassNotFoundException e) {
						e.printStackTrace();
					}
					if (objTemp.getClass() == Map.class) {
						Map mapTemp = (Map) objTemp;
						HMSaves.put(mapTemp.getName(), mapTemp);
					}
					ois.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
		}
		saves = new ArrayList<Map>(HMSaves.values());
		return saves;
	}