fixed an error in findwinner logic