Puzzle generator library