Removed "goto" commands and used "while" instead

The "goto" were used for the main game process, which reads player
commands and executes them. I replaced them with a "while" loop.