Turn on turbo mode, hit that green flag and enjoy. The AI's code works by remembering what moves it took that didn't lead it into the wall, and then testing new ones (and deleting increasing amounts of them if it gets stuck). Once it finishes, turn off turbo mode and watch it replay the path it made.
Random maze from google, my tired and bored brain. The record so far is 184 generations by @minekraftkid . Comment if yours gets lower. Please use turbo mode (shift+click the green flag).