made battle render functions smaller