public void setTileID(int x, int y, byte id) {
		if (!(x < getWidth() & y < getHeight() & x >= 0 & y >= 0)) {
			setTileSet(resize(Math.max(x + 1, getWidth()), Math.max(y + 1, getHeight()), Math.min(x, 0), Math.min(y, 0)));
			x -= Math.min(x, 0);
			y -= Math.min(y, 0);
		}
		getTileSet()[x][y] = id;
	}