public void calculateNextPosition(Position position, Action action) {
		if ("L".equals(action.getActionCode())) {
			position.setOrientation(moveNinetyDegree(position.getOrientation(),
					Action.LEFT));
		} else if ("R".equals(action.getActionCode())) {
			position.setOrientation(moveNinetyDegree(position.getOrientation(),
					Action.RIGHT));
		} else if ("F".equals(action.getActionCode())) {
			moveForward(position);
		}
	}