working with doBattle