I'm no professonial but I'll see what I can do...
Edit: It seems that I got the enemy state machine working more or less as intended. Let's see about the rest of the problems 😅