Update candy.cpp