added idno to factory class, units and buildings, added the building
enum type for the factory