Figure 5 Four-in-one image showing the decision-making process and animation in the event that the agent in the maze encounters a dead-end. Image 1 shows the first decision of the algorithm. The agent randomly selects North as the direction to travel. In Image 2, the agent approaches a dead end, in which the only edge away from that node is the edge which was just traveled to reach it. Image 3 shows the agent back-tracking to the initial node, marking the path red in the process. Image 4 shows the agent continue to traverse the maze, randomly selecting future nodes and marking edges it encounters along the way.