added logic in determining difficulty level of puzzle.