public RestaurantPanel(RestaurantGui gui) {
        this.gui = gui;

        markets.add(new MarketAgent("Market 1"));
        markets.add(new MarketAgent("Market 2"));
        markets.add(new MarketAgent("Market 3"));
        
        CookGui cookGui = new CookGui(cook, gui);
        gui.animationPanel.addGui(cookGui);
        cook.setGui(cookGui);
        
        for(MarketAgent market: markets)
        {
        	cashier.setMarket(market);
        	market.setCashier(cashier);
        	cook.setMarket(market);
        	market.startThread();
        }
        
        host.startThread();
        cook.startThread();
        cashier.startThread();
        cook.InitializeAreas();
//        cook.CheckInitialFood();
        
        
        setLayout(new GridLayout(1, 2, 20, 20));
        group.setLayout(new GridLayout(1, 2, 10, 10));
        biggerGroup.setLayout(new BoxLayout(biggerGroup, BoxLayout.LINE_AXIS));
        
        group.add(customerPanel);
        group.add(waiterPanel);
        biggerGroup.add(group);
//        biggerGroup.add(pause);
        biggerGroup.add(restLabel);
        add(biggerGroup);
        
        pause.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e)
            {
	        	if (e.getSource() == pause) 
	        	{
	        		if (!paused)
	        		{
	        			System.out.println("PAUSED");
	        			paused=true;
	        			for(CustomerAgent customer: customers)
	        			{
	    	    	        customer.pause();
	        			}
	    		        for (WaiterAgent waiter: waiters)
	    		        {
	    	    	        waiter.pause();
	    	    	    }
	    		        for (MarketAgent market: markets)
	    		        {
	    	    	        market.pause();
	    	    	    }
	    		        cashier.pause();
	    		        host.pause();
	    		        cook.pause();
	        		}
	        		else
	        		{
	        			System.out.println("UNPAUSED");
	        			paused=false;
	        			for(CustomerAgent customer: customers)
	        			{
	        				customer.restart();
	        			}
	    		        for (WaiterAgent waiter: waiters)
	    	    	    {
	    		        	waiter.restart();
	    	    	    }
	    		        for (MarketAgent market: markets)
	    		        {
	    	    	        market.restart();
	    	    	    }
	    		        cashier.restart();
	    		        host.restart();
	    		        cook.restart();
	        		}
	        	}
            }
        }); 
        
        initRestLabel();

    }