Working voting system

Referring to issue #12. Will not close it until the voting system is
thoroughly.