lots of polishing and little fixes to the battle system back end