solution to the candy stuff