public static Tile createTile(int id, int x, int y, World world) {
        int xx = x;
        int yy = y;
        if (id == grassId) return new TileGrass(xx, yy, world);
        if (id == waterId) return new TileWater(xx, yy, world);
        if (id == treeId) return new TileTree(xx, yy, world);
        if (id == stoneId) return new TileStone(xx, yy, world);
        if (id == sandId) return new TileSand(xx, yy, world);
        if (id == dirtId) return new TileDirt(xx, yy, world);
        if (id == holeId) return new TileHole(xx, yy, world);
        else return new TileVoid(xx, yy, world);
    }