fix auto battle end

queue up the end battle action instead of pushing it directly.