public void useItem(int playerID, int index) {
		Player p = this.playerIDs.get(playerID);
		if (p != null) {
			if (index != -1 && p.getInventoryItems().get(index) != null) {
				Item toUse = p.getInventoryItems().get(index);
				if (toUse instanceof Powerup) {
					Powerup powerup = (Powerup)toUse;
					if (powerup.getPower() == Powerup.Power.HEALTH_POTION || powerup.getPower() == Powerup.Power.STRONG_HEALTH_POTION) {
						powerup.use(p);
						server.queuePlayerUpdate(new UpdateHealthEvent(p.getHealth()), playerID);
					}
					p.removeFromInventory(index);
					server.queuePlayerUpdate(new RemoveFromInventoryEvent(index), playerID);
				} else if (toUse instanceof Key) {
					this.unlock(p.getLocationInFrontOf());
					p.removeFromInventory(index);
					server.queuePlayerUpdate(new RemoveFromInventoryEvent(index), playerID);
				}
			}
		}
	}