So here is a real AI that can learn to navigate any track. While there are faster methods of pathfinding, the other ones I have seen are not real AI. This is. Draw any track and eventually it will find a way!
If you can't be bothered to train an AI, simply remove the "create instructions" block and import this txt into the list called instructions (note these instructions are for the default track only): https://www.mediafire.com/file/gmhgwnseb54vcu8/brain.txt/file i will try to train more brains.