adding functionality to battle method