determine winner and record score on server