implemented some logic for when a battle starts