fixed a bug and changed the attack