The rat explores from the top-left cell to the bottom-right, trying D, L, R, U in order. Watch the path stack grow, cells get marked visited, and dead ends trigger the un-mark backtrack.
junior.md and professional.md for the visited-matrix invariant (visited set = current recursion stack).