rearranges some logic, this appears to win most if not all the time