added professions tab. figured out and implemented an algorithm that collects the resources