You have to stop in the yellow square, and you only stop if you hit a wall. Your pictures show possibilities of going through yellow spots, but not stopping in them.
Thank you! Fun fact, I made it such that the unsolvable puzzles are actually quite likely to go through the yellow spots, just to make guessing it more challenging.