public void run()
			{
				while(population > 0)
				{
					consumeGoods();
					
					if(isShoudProduce())
					{
						for(Stock s : warehouse.storedGoods.values())
						{
							Stock.StockType type = s.getType();
							if(warehouse.availableSpace >= type.getThickness()*type.getProductionSpeed())
							{
								s.addVolume(type.getProductionSpeed());
								warehouse.usedSpace += type.getThickness()*type.getProductionSpeed();
								warehouse.availableSpace = Warehouse.capacity - warehouse.usedSpace;
							}
							
							
						}
					}
					
					try 
					{
						Thread.sleep(5000);
					} catch (InterruptedException e) 
					{
						e.printStackTrace();
					}
				}
				if(population<=0)
				{
					Empire.getInstance().SETTLEMENTS.remove(name);
					//System.out.println(Empire.getInstance().SETTLEMENTS.size());
				}
			}