new function to write unit lines at battle start