Added Puzzle-level rowContains function to check rows in all grids.