fixed casting, added dynamic change for parallelStartDepth to improve performance on smaller puzzles