change to write tile to get rid of tile num input