finished a working version of ranked voting