public void buttonClick(ActionEvent e) {
			String bv = e.getActionCommand().toString();
			switch (bv) {
				case "New":
					NewMapDialog mapDialog = new NewMapDialog();
					int mapDialogResult = JOptionPane.showConfirmDialog(null, mapDialog, "Select", JOptionPane.OK_CANCEL_OPTION);
					if (mapDialogResult == JOptionPane.OK_OPTION) {
						mapScrollPane.createMap(mapDialog.getWSelectorValue(),mapDialog.getHSelectorValue());
					}
					break;
				case "Remove":
					mapScrollPane.removeMap();
					break;
				case "Show Grid":
					mapScrollPane.showGrid();
					break;
				case "Zoom In":
					mapScrollPane.zoomIn();
					break;
				case "Zoom Out":
					mapScrollPane.zoomOut();
					break;
				case "Optimise":
					actionOptimise();
					break;
				case "help":
					mapScrollPane.printGrid();
					break;


				default:
					break;
			}
		}