If the intent is to record the names of players who plan on playing a game, the original script has a repeat forever loop, so the program would continually ask for the name instead of moving on to the actual game. I removed the forever loop.
taken from @anaptyxis