refactored and commented battle system and its components