This is better, but I had suggested that you implement a `getTileForTileGID` helper method instead. That is because tile objects also use GIDs and could then use the same method. Here you would just do `ml.setTileAt(x, y, getTileForTileGID(tileId))`.