update second trial of unique-paths-ii