End battle pseudocode

end battle pseudocode