Go Program for Candies Community Puzzle

Wrote a program using the Go programming language to handle this puzzle. Passes the first four tests fine. Fails the last 4 tests. The results look correct, so I am wondering what I did wrong. I’ve posted the code over on the Go Playground: http://play.golang.org/p/Tq1KEM13yi