this is still EXTREMELY rough so dont expect it to work PERFECTLY (e.g.; it might go backward or the wrong way) this was surprisingly easy and fast! It took about like 3 days maybe I named the algorithm "greg" its more of a "pathfinding" ai but keep that a secret between us ;)
all of the code is by me ^_^ "WhAt TuToRiAl DiD yOu FoLlOw" - an idiot