private void paintContainer(Graphics g) {
		int xStart = getWidth() / 3;
		int yStart = getHeight() / 3;
		// create the images
		Image slot = containerSlot.getScaledInstance(SLOT_SIZE, SLOT_SIZE, 0);
		Image selectedSlot = selectedContainerSlot.getScaledInstance(SLOT_SIZE,
				SLOT_SIZE, 0);

		// initial slot
		int row = 0;
		int column = 0;
		int xPos = xStart;
		int yPos = yStart;

		paintExitButton(xPos, yPos, g);
		yStart = yStart + SLOT_SIZE / 2;

		// draw each slot and its item
		for (int i = 0; i != maxItems; i++) {
			// get the position of the slot
			xPos = xStart + column * SLOT_SIZE;
			yPos = yStart + row * SLOT_SIZE;

			// if this slot is selected
			if (i + 1 == selectedItem) {
				// draw with the selected image
				g.drawImage(selectedSlot, xPos, yPos, null, null);
			} else {
				// otherwise draw with normal image
				g.drawImage(slot, xPos, yPos, null, null);
			}

			// draw the item if there is one
			if (items.get(i) != null) {
				Image item = items.get(i).imgs[0];
				drawItem(item, xPos, yPos, g);
			}

			// now increment the row and column
			if (column + 1 < MAX_COLUMN) {
				column++;
			} else {
				column = 0;
				row++;
			}

		}

	}