1Write best_path(grid): the cells of one path with the most points, from (0, 0) to the bottom-right corner, as (row, column) pairs. most_points is given, and best is its table.
2Start at the corner. A cell's total is its own points plus the total of the neighbor it came from, so step to a neighbor whose total is best[r][c] - grid[r][c]. Reverse the cells at the end.