fix some bug in computerAttackingThread