logic for battle system