Implemented decision in AgentLogic