election mostly implemented but not working yet