added who has won function