add empty tile detection