tilePackFactory = new LoadGameTilePackFactory();
tilePackFactory.setGame(game);
tilePackFactory.setConfig(game.getConfig());
tilePackFactory.setExpansions(game.getExpansions());
tilePackFactory.setSnapshot(snapshot);
DefaultTilePack tilePack = tilePackFactory.createTilePack();
game.setTilePack(tilePack);
for (String tileId : snapshot.getDiscardedTiles()) {
Tile tile = tilePack.drawTile(tileId);
game.getBoard().discardTile(tile);
}
}