@Override
	public void buttonPerformed(String name) {
		if (name.equals("Choose Colour")) {
			Color temp = JColorChooser.showDialog(null, "Choose your line color", c);
			if (temp != null) {
				c = temp;
			}
		} else if (name.equals("Save")) {
			writeMap();
		} else if (name.equals("Place Character")) {
			setChar = true;
		} else if (name.equals("Exit")) {
			System.exit(0);
		}

	}