Preparing the battle logic