Cleaned up code, still getting error

I spoke too soon; I seem to get an "undefined offset" error until every
vote has been used. I need to figure out why.