not really an AI. its just a dumb program that is programmed to do different things in different situations. i haven't added all possible situations yet if you want it run smoother, you should go to https://turbowarp.org/800636004 maybe turn on 60-fps mode and/or high-quality pen
thanks to @Scratchmaster978912 for the idea: https://scratch.mit.edu/projects/730401174/#comments-315349026