private void doAction(Action actionToDo) {
		try {
			if (!objectTron.isFinished())
				objectTron.activePlayerDoAction(actionToDo);
		} catch (IllegalArgumentException | InvalidActionException e) {
			System.out.println(objectTron.getActivePlayer().getPosition()
					.toString());
			showError(e.getClass().getSimpleName(), e.getMessage());
		}

		if (objectTron.isFinished()) {
			repaint();
			showMessage("Game ended!", "The game has ended!");
			askForNewGame();
		}
	}