Hey, don't know how I missed this comment! The AI is actually pretty simple. It works as follows: It has a chance of moving to the finish, or not moving. Whatever it decides, it does that for a random amount of time before choosing again. It also has a small chance to attempt to jump every frame. I'm glad you find it cool :)
Ahhh my bad, the evil guy AI isn't really an AI, it just spawns bombs at a random position above the player, and it only spawns once the cursor reaches within a certain distance of that point. Between bombs, it decides on a random point to go to, and triggering any actions (like moving the finish) causes the cursor to complete that as its next task. The cursor basically always lerps to wherever something needs to be done. I don't 100% remember how it works so lmk if you want to know more.