fix bug that handles the fact that blank tiles are represented with 0