What I think the main function does

I think that the main function includes parameters that can change which include the difficulty and max difficulty. While the difficulty is less than or equal to the final difficulty it will execute the command that makes the game play. If the user is successful it will give them a compliment.