fix win and lose judge