applysingletons method finished. It will fill in the puzzle from the singletons vector<vector<int>>.