first pass at election logic