On event 20-22, I completely liberated that event and sub events from the function. It is my understanding that function will only trigger once per call, so having an infinite loop beneath a function will not do anything. I hit 'new maze' 50 times and didn't have the car get stuck in a wall once.
Hope this helps,
Give me a Pixel