It's a bit unclear.
So, while you're looking for a solution with 2 walls, you can find about 8 different solutions for 3 walls. I even stopped counting them at some point.
For 2 walls, you definitely need to use certain moves where the grid tries to trick us. Example with initial moves.