A modified DFS algorithm to solve the Priceonomics Puzzle.