updates players stats after end of game and returns to waiting room