changed recognize so that if a unit does not attack its state will change so it can move again