Fixed infite loop issue in battle, better running.