wrote the function that renders an army or navy