added end battle