These small figures are resources; the units costs some resources, for example if a building costs 100 of gold and 150 of stone and you want building it, you must to order your workers harvest this resources and when you have 100 of gold and 150 of stone you can build the building