Thank you very much! I'm glad you liked it.
Each building has its function: population, defense, money, and food. And money buys things. You have to keep the population alive and eating, so you always have to maintain food and population. The attack will attack the defense first, and then the population.