added generate method to TileGame