def act_with_communication(agent):
    "Handles agent's move with communication"
    if agent.is_alive:
        action = agent.act(obs[agent.agent_id], action_space=action_space)
        if (type(action) == int):
            action = ([action] + [0, 0])
        assert (type(action) == list)
        return action
    else:
        return [constants.Action.Stop.value, 0, 0]
Handles agent's move with communication
def act_with_communication(agent):
    
    if agent.is_alive:
        action = agent.act(obs[agent.agent_id], action_space=action_space)
        if (type(action) == int):
            action = ([action] + [0, 0])
        assert (type(action) == list)
        return action
    else:
        return [constants.Action.Stop.value, 0, 0]