Changing double each in candy. Not working for all problems