public void quit() {
		int reponse = JOptionPane.showConfirmDialog(getParent(), "Do you want to save before exiting ?", "Exit", JOptionPane.YES_NO_CANCEL_OPTION);
		if (reponse == 0 || reponse == 1) {
			if (reponse == 0) {
				manager.saveMap();
			}
			this.removeAll();
			guiParent.putToSleep(false);
			this.dispose();
		}
	}