Hi - I am attempting to kill the simulation right before my agent reaches the end of the grid which is 100 x 200.
I have self.running = True and when the position of my agent equals to the y coordinate of 195, an if statement changes it to self.running = False. However, my simulation keeps on running and I get the below error message when my agent steps off the board.
I am not sure why my simulation is not stopping when self.running = False is invoked. I have also included the three files for reproducibility with the important lines highlighted.