(SudokuServer) make the constructor and destructor of TaskFactory and TaskManager pprivate , meanwhile let SingleTon become their friend class