Tile detection + map edit