wrote unit tests for PuzzleGenerator