Puzzle Generation

Fixed some problems in solution set
puzzle factory generates puzzles now.