How to set up a battle thread