private static void executeUserCommand(String command, Field field) {
        switch (command) {
            case SAVE_COMMAND:
                SaveLoad.saveGame(field);
                break;
            case SURRENDER_COMMAND:
                field.openField();

                break;
            default:
                if (command.contains(FLAG_COMMAND)) {
                    command = command.substring(command.indexOf(FLAG_COMMAND) + FLAG_COMMAND.length());
                    String[] coordArr = command.split(SaveLoad.WIGHT_HEIGHT_SPLITTER);
                    try {
                        field.setFlag(Integer.parseInt(coordArr[0].trim()), Integer.parseInt(coordArr[1].trim()));
                    } catch (Exception e) {
                        System.out.println(INPUT_ERROR_MESSAGE);
                    }
                } else {
                    String[] coordArr = command.split(SaveLoad.WIGHT_HEIGHT_SPLITTER);

                    try {
                        field.openCell(Integer.parseInt(coordArr[0].trim()), Integer.parseInt(coordArr[1].trim()), true);
                    } catch (Exception e) {
                        System.out.println(INPUT_ERROR_MESSAGE);
                    }
                }
                break;
        }
    }