add common attack function
target location moves with player