Candy-guessing contest nears end at library