def combine(schedules,agent_order_list,highest_timestep):
    """
    Combine list of actions from agents to one list

    """
    action=[]
    for timestep in range(highest_timestep-1):
        current_action = dict()
        index = 0
        for agent in agent_order_list:
            if timestep < len(schedules[index]):
                current_action[agent] = schedules[index][timestep][agent]
            else:
                current_action[agent] = 4
            index += 1
        action.append(current_action)
    return action