state and agent name in simulation updates correctly