private void viewInventory() {
		String[] weapons = player.getInventory().getWeaponTexts();
		String[] armour = player.getInventory().getArmourTexts();
		String[] foods = player.getInventory().getFoodsTexts();
		String[] misc = player.getInventory().getMiscTexts();
		int inventoryLength = weapons.length + armour.length + foods.length + misc.length;
		if (inventoryLength == 0) {
			log.println("You are not holding anything");
		} else {
			JPanel panel = new JPanel();
			panel.setLayout(new GridLayout(0, 1));
			if (weapons.length > 0)
				panel.add(new JLabel("WEAPONS:"));
			for (String w : weapons)
				panel.add(new JLabel(w));
			if (armour.length > 0)
				panel.add(new JLabel("ARMOUR:"));
			for (String a : armour)
				panel.add(new JLabel(a));
			if (foods.length > 0)
				panel.add(new JLabel("FOOD:"));
			for (String f : foods)
				panel.add(new JLabel(f));
			if (misc.length > 0)
				panel.add(new JLabel("MISC:"));
			for (String m : misc)
				panel.add(new JLabel(m));
			
			JOptionPane.showMessageDialog(null, panel, "Inventory", JOptionPane.PLAIN_MESSAGE);
		}
	}