Press space to change the map. Watch the circle pathfinder find his way through. He doesn't have a set destination; he just roams around trying to not hit the walls.
The AI is simple but powerful. I've improved the code, so it shouldn't run into anything. If he does, please send feedback and I will look into it. The AI stops moving when the direction chosen isn't available, unlike before where he went headfirst without stopping. This caused him to fail, and it's now fixed. ------------------------------------------------------------------------ Press space to change the map. Tell me if you want mobile support for this too. ------------------------------------------------------------------------ Please send feedback! Thank you :D