Hi, thanks for this puzzle, I’ve enjoyed it
Just to notice that I was able to pass all the validators but not tests 7 and 8, because I had forgotten to empty the visited cell the first time I get the money from it.
The puzzle does not explicitly indicate how the coordinates change as you move up/down (whether it is a Cartesian coordinate system or an array).
The puzzle is interesting, but I think it could have been made EVEN more interesting, namely: the restrictions on maximum/minimum coordinates could be significantly increased to eliminate the use of the array, as well as increase the number of events.