AI I made in about 10 minutes that can try to avoid you using a modified version of gradient ascent
it goes into walls pretty much 100% of the time lol