implemented attack action