Implemented function to generate a pruning table for a puzzle.