private List<Action> buildOrder(Player a) {
		List<Action> actions = new ArrayList<Action>();

		for(Action action : a.getActions()){
			if (action.type == Type.Building && buildings)
				actions.add(action);
			if (action.type == Type.Unit && units)
				actions.add(action);
			if (action.type == Type.Research && research)
				actions.add(action);
			if (action.type == Type.Upgrade && upgrades)
				actions.add(action);
		}

		return actions;
	}