private static void PickMove(IAgentUpdateInfo agentUpdate, IEnumerable<INodeInformation> possibleNodes, IAgent agent) { agent.Move(possibleNodes.Count() > 0 ? possibleNodes.First() : agentUpdate.Node.Exits.First().Value); }