public void doAction(Player player) throws InvalidActionException {
		if (player == null)
			throw new IllegalArgumentException("Player can't be null!");
		if (player.getRemainingActions() <= 0)
			throw new InvalidActionException("The player has no turns left!");
		
		Position pos = player.getPosition();
		
		if (player.getInventory().size() == 6)
			throw new InvalidActionException("The inventory of the player is full!");
		if (!grid.getElementsOnPosition(pos).contains(item))
			throw new InvalidActionException("The item isn't position on the player's position!");
		if (!item.isPickUpAble())
			throw new InvalidActionException("The item isn't pickupable!");
		
		player.addItemToInventory(item);
		grid.removeElement(item);
		player.decrementAction();
	}