public void openMap() {
		try {
			File file = new File("saves/SaveList.set");
			Scanner scan = new Scanner(file);
			int n = Integer.parseInt(scan.nextLine());
			if (n == 0) {
				scan.close();
				return;
			}
			Object[] options = new Object[n];
			for (int i = 0; i < n; i++) {
				options[i] = scan.nextLine();
			}
			String s = (String) JOptionPane.showInputDialog(null,
					"Select a save:", "Open Maze Map",
					JOptionPane.PLAIN_MESSAGE, null, options, options[0]);
			scan = new Scanner(new File("saves/" + s + ".map"));
			if (!scan.nextLine().equals(saveFormat)) {
				scan.close();
				return;
			}
			int inx = scan.nextInt();
			int iny = scan.nextInt();
			scan.nextLine();
			newMaze(new Dimension(inx, iny));
			for (int i = 0; i < x; i++) {
				for (int k = 0; k < y; k++) {
					mazeMap[i][k] = scan.nextInt();
				}
				scan.nextLine();
			}
			scan.close();
		} catch (Exception e) {
		}
	}