private static IEnumerable<Pair<int, int>> Parse(TableRow tableRow, int y) { var cells = new List<Pair<int, int>>(); tableRow.ForEach((x, cell) => { if (cell.Value != ".") { cells.Add(new Pair<int, int>(x, y)); } }); return cells; }