public void Start() { while (!exit) { var nextCommand = IO.ReadNextLine(); if (String.IsNullOrEmpty(nextCommand)) { Exit(); } else if (nextCommand.StartsWith("Start new game")) { StartNewGame(DeckParser.Parse(nextCommand)); } else { MakeNextMove(MoveParser.Parse(nextCommand)); } } }