This AI can move from left to right trying to dodge the walls. It is not a code that only works with a specific maze, it is a 100% AI that detects collisions. Try it yourself, click on 'see inside' and follow the steps in the comment. For now this AI has a lot of bugs, but I will try to fix them.