update winner and nextplayer variables for firebase