fixed the way battles are updated