Fix win and lose conditions.