@Override
	public void actionPerformed(ActionEvent acc) {
		try {
			if (OPEN_ACTION.equals(acc.getActionCommand())) {
				stateManager.openScene();
				Console.println("Open Scene");
			} else if (SAVE_ACTION.equals(acc.getActionCommand())) {
				stateManager.saveScene(false);
			} else if (SAVEAS_ACTION.equals(acc.getActionCommand())) {
				stateManager.saveScene(true);
			} else if (NEW_ACTION.equals(acc.getActionCommand())) {
				stateManager.newScene();
				Console.println("New Scene");
			} else if (EXIT_ACTION.equals(acc.getActionCommand())) {
				EditorPreferencesManager.savePreferences();
				System.exit(0);
			} else if (PLAY_ACTION.equals(acc.getActionCommand())) {
				stateManager.play();
				Console.println("Game Started");
			} else if (STOP_PLAY_ACTION.equals(acc.getActionCommand())) {
				stateManager.stopPlay();
				Console.println("Game Stopped");
			} else if (LOAD_EXTENSION.equals(acc.getActionCommand())) {
				stateManager.loadNewExtension();
			}
		} catch (final Exception e) {
			Console.println(e);
		}
	}