finished up the election fsm