Added attack functionality to enemy AI