Can someone explain how the logic works with who wins