Change 0 to mean empty tile