Create battle_functions.py

Adds a few helper functions to simplify things in the main file.