added attackEntityFrom into the AI