public void update() {
		if(GameManager.getGames().size()!= games)
			getInventory();
		for(ItemStack item: menu.getContents()) {
			if(item!= null && item.getType()!= Material.MAGMA_CREAM) {
				ItemMeta im = item.getItemMeta();
				String name = ChatColor.stripColor(im.getDisplayName().split(" ")[0]);
				Game game = GameManager.getGame(name);
				if(game.getState()== State.WAITING || game.getState()== State.STARTING) {
					item.setDurability((short) 5);
					im.setDisplayName("§a"+game.getName()+" - "+game.getState());
				} else if(game.getState()== State.RESTARTING) {
					item.setDurability((short) 1);
					im.setDisplayName("§6"+game.getName()+" - "+game.getState());
				} else {
					item.setDurability((short) 14);
					im.setDisplayName("§c"+game.getName()+" - "+game.getState());
				}
				im.setLore(new ArrayList<String>(Arrays.asList("§7Players: "+game.getPlayers().size()+"/"+game.getMaxPlayers(),
						"§7Time: "+game.getTimeString(), "§8Right click to close,", "§8Left click to open or", "§8Shift click to restart")));
				item.setItemMeta(im);
			}
		}
	}