added who won function to board