Reformatted a terribly ugly piece of code.
Fixed(?) some bad logic hidden by obfuscated code/formatting..
Never EVER rescue Exception unless you have a damn good reason.
Sort the leaderboard and final output by energy/damage.