Candy.cpp finished , better than answer