client disconnect + log update

1. If client closed the browser in the middle of a game he is replaced
with an agent that always votes for his first priority.
2. Added priorities to the log and changed the candidates names to
Indexes.