Implemented costs when producing something.
Fixed small bug in checking for resource amount.
Added starting conditions to factory.
Merge branch 'master' into CostImplement