he decided to get started by sorting everything into piles based on what needed doing : one pile for things associated with money , another for guards and military , and a third for agriculture and resources .