revised win algorithm and changed spec_helper to randomize spec order