updated server to save player score and return winner on closing of a quiz