updated Candy.java