So, the most basic debug technique of all times is echoing information to see what the values are and which logic is executing…
this.say() takes whooping
1s and while you are busy talking, monsters are busy dismantling you.
I am not sure if it takes so long because there are levels that depend on it?
I would suggest adding
this.think() method that will take no time and won’t be visible to opponents.