private void run() throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        this.cliActive = true;
        this.game = null;
        while (this.cliActive) {
            System.out.print("> ");

            String command = br.readLine();
            command = command.trim();
            command = command.toLowerCase();

            if (command.length() == 0) {
                continue;
            }

            switch (command.charAt(0)) {
                case 'h':
                    this.showHelp();
                    break;
                case 'q':
                    this.quit();
                    break;
                case 'p':
                    this.printField();
                    break;
                case 'n':
                    this.newGame(command);
                    break;
                case 'd':
                    this.dig(command);
                    break;
                default:
                    this.unknownCommand();
            }
        }
    }