I fixed the code. Changed adjacent nodes in clips interface to available
nodes, and added the game state checks after each agent move in main.