public boolean isOnBorder(int x, int y) {
			if (selectedX + x >= tileWidth) {
				return true;
			} else if (vectorToId(selectedX + x, selectedY) >= inv.getItems()
					.size()) {
				return true;
			}
			return false;
		}