Here is my function for recording the loser of the game.