some logic refactoring and such
fixed / improved AI logic

more specifically, the AI will follow its target a little faster (this
is super scary when it has melee, just sayin')