Bugfix in contestTabulation Driver

Found a real solution to the bug that arose because of having variables
in global space, probably due to my lack of knowledge of concurrency and
runtime optimization causing variables in different instances of the
task being shared (very undesirable behavior in this case)