You have a problem with the following While loop:

while (%vote.choice. [ $+ [ $calc(%counterfive) ] ] != null) {

%counterfive keeps increasing no matter what. I'm going to look into it and find where exactly is the problem.