ed, directing the construction of fortifications, organizing supply lines, assigning warriors to defensive positions