fixing winner-swap bug