Buggy version of 'end voting' [wip]
Local state refactor [wip]