Preparing for battle scene exit code