@Override
	public void pickUp(Player playerToPickUp) throws InvalidActionException {
		if (playerToPickUp == null)
			throw new IllegalArgumentException("The given arguments are invalid!");
		if (playerToPickUp.getInventory().findFlag() != null)
			throw new InvalidActionException("You can only have 1 PlayerFlag in your inventory!");
		
		if (player.equals(playerToPickUp))
			getGrid().updateElementPosition(this, playerToPickUp.beginPosition);
		else
			addItemToPlayersInventory(playerToPickUp);
	}