Factoryrefactor

Factory has been updated to produce buildings and the Building class has been altered.