public void paint(Graphics g) {
		Graphics2D g2 = (Graphics2D) g;

		// Clear the screen by painting a rectangle the size of the frame
		g2.setColor(Color.gray);
		g2.fillRect(0, 0, WINDOWX, WINDOWY);
		
		if(SimCityGui.GRADINGVIEW) {
			for (Table table : restaurant.tables) {
				g.setColor(Color.ORANGE);
				g.fillRect(table.getX(), table.getY(), tableSize, tableSize);
			}
        }
		else {
			if(background != null)
        		g2.drawImage(background,0,0,null);
			for (Table t : restaurant.tables) {
				g2.drawImage(table, t.getX(),t.getY(), null);
			}
		}
		
		for (Gui gui : restaurant.guis) {
			if (gui.isPresent()) {
				gui.draw(g2);
			}
		}
	}