struct Location: Equatable, Hashable { let row: Int let col: Int init(_ r: Int, _ c: Int) { self.row = r self.col = c } }