ai dynamic unit can attack now. but there's a bug

unit that is dead is still being recognized. need to fix that