updating players' scores after game end