Update broken necklace.cpp