Added attack ai logic to ai class