private void runAI(String str, boolean draw) throws IOException {
        if (5 == Setup.getPositioner().getPositioned()) {
            switch (str) {
                case "-r":
                    Setup.getAI().randomVolley(); break;
                case "-h":
                    Setup.getAI().hunt(); break;
                case "-p":
                    Setup.getAI().huntWithParity(); break;
                case "-d":
                    Setup.getAI().dynamicHuntWithParity(); break;
                case "-s":
                    Setup.getAI().smartHuntWithParity(); break;
                default:
                    System.out.print("Invalid algorithm.\n");
            }
            shotCount = Setup.getPlayerBoard().getShotCount();
            
            if (draw) {
                Setup.getPlayerBoard().draw();
            }
            
            Setup.init();
        } else {
            System.out.print("Cannot run AI at this time.\n");
        }
    }