Changed updateTilesByValue to updateAllTiles