added battle helper functions