public void actionPerformed(ActionEvent e) {
		if (e.getSource() == startButton) {
			System.out.println("start button pressed!");
			synchronized(wait1) {
				wait1.notify();
			}
			stepButton.setEnabled(true);
			nextBestButton.setEnabled(true);
			startButton.setEnabled(false);
		} else if (e.getSource() == stepButton) {
			System.out.println("step button pressed!");
			synchronized(wait1) {
				if (mode.m == 2)
					mode.m = 3;
				wait1.notify();
			}
		} else if (e.getSource() == nextBestButton) {
			System.out.println("Step to next button Pressed!");
			synchronized(wait1) {
				mode.m = 2;
				wait1.notify();
			}
		}
	}