@Override
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		Functions.DEBUG("Action: " + e.getActionCommand());

		if (e.getActionCommand().equals("Add")) {
			if (validateInput()) {
				addPressed();
			} else {
				badInput();
			}
		} else if (e.getActionCommand().equals("Test")) {
			if (tracker == 0) {
				parent.mainCanvas.displayArea.imageQueue.get(0).setCurrentImage(parent.mainCanvas.displayArea.imageQueue.get(0).redPressed);
				tracker++;
			} else if (tracker == 1) {
				parent.mainCanvas.displayArea.imageQueue.get(0).currentImage = parent.mainCanvas.displayArea.imageQueue
						.get(0).greenUnpressed;
				tracker++;
			} else if (tracker == 2) {
				parent.mainCanvas.displayArea.imageQueue.get(0).currentImage = parent.mainCanvas.displayArea.imageQueue
						.get(0).greenPressed;
				tracker++;
			} else if (tracker == 3) {
				parent.mainCanvas.displayArea.imageQueue.get(0).currentImage = parent.mainCanvas.displayArea.imageQueue
						.get(0).yellowPressed;
				tracker++;
			} else if (tracker == 4) {
				parent.mainCanvas.displayArea.imageQueue.get(0).currentImage = parent.mainCanvas.displayArea.imageQueue
						.get(0).yellowUnpressed;
				tracker++;
			} else if (tracker == 5) {
				parent.mainCanvas.displayArea.imageQueue.get(0).currentImage = parent.mainCanvas.displayArea.imageQueue
						.get(0).redUnpressed;
				tracker = 0;
			}

		}
	}