Updated Battle Simulator Code