Modifications Needed for Three-Pile Nim

With three piles, the display-game-state procedure must be modified to display like:
         Pile 1: 8
         Pile 2: 5
         Pile 3: 7
     
     
     Which pile will you remove from?
You will also need to make minor changes to: You will be able to test your changes after the next step.