public void paintComponent(Graphics g) {
        Graphics2D g2 = (Graphics2D)g;
        Graphics2D g3 = (Graphics2D)g;
        Graphics2D cookingArea = (Graphics2D)g;
        Graphics2D platingArea = (Graphics2D)g;
        //Clear the screen by painting a rectangle the size of the frame
        g2.setColor(getBackground());
        g2.fillRect(0, 0, this.getWidth(), this.getHeight() );
        g3.setColor(Color.BLACK);
		g3.drawString("CUSTOMER LINE", 20, 15);
		g3.drawString("COOK", 0, 150);
		g3.drawString("WAITER BREAK AREA", 240, 15);
		g3.drawString("TABLE 1", 50, 275);
		g3.drawString("TABLE 2", 200, 275);
		g3.drawString("TABLE 3", 350, 275);
        cookingArea.setColor(Color.PINK);
        cookingArea.fillRect(0, 60, 40, 80);
        platingArea.setColor(Color.CYAN);
        platingArea.fillRect(0, 150, 40, 80);
        int xPosUpdated=xPos;
        //Here is the table
        for (int i=1; i<=NTABLES; i++) //CREATING GUI TABLES
        {
        	ImageIcon table = new ImageIcon("images/restaurantE_table.png");
        	Image image = table.getImage();
        	g.drawImage(image, xPosUpdated, yPos, null);
//        	g2.setColor(Color.ORANGE);
//	        g2.fillRect(xPosUpdated, yPos, Width, Height);//200 and 250 need to be table params
	        xPosUpdated+=150;
        }

        for(Gui gui : guis) {
            if (gui.isPresent()) {
                gui.updatePosition();
            }
        }

        for(Gui gui : guis) {
            if (gui.isPresent()) {
            	gui.draw(g2); 
                Graphics2D stringOrder = (Graphics2D)g;
            	if (gui instanceof WaiterGui)
            	{
            		WaiterGui waiterGui = (WaiterGui) gui;
            		waiterGui.drawOrder(stringOrder, waiterGui.text);

            	}
            	else if (gui instanceof CustomerGui)
            	{
            		CustomerGui customerGui = (CustomerGui) gui;
            		customerGui.drawOrder(stringOrder, customerGui.text);
            	}
            	else if (gui instanceof CookGui)
            	{
            		CookGui cookGui = (CookGui) gui;
            		cookGui.drawFirstPan(stringOrder, cookGui.firstPan);
            		cookGui.drawSecondPan(stringOrder, cookGui.secondPan);
            		cookGui.drawThirdPan(stringOrder, cookGui.thirdPan);
               		cookGui.drawFirstPlate(stringOrder, cookGui.firstPlate);
            		cookGui.drawSecondPlate(stringOrder, cookGui.secondPlate);
            		cookGui.drawThirdPlate(stringOrder, cookGui.thirdPlate);
            	}
            }
        }
    }