public boolean handleInput(String line) {
        // start new Game
        if (line.matches("start[0-9]+")) {
            String param = line;
            param = param.replaceAll("start", "");
            int cash = Integer.parseInt(param);
            controller.start(cash);
        } else if (line.equalsIgnoreCase("stand")) {
            controller.stand();
        } else if (line.equalsIgnoreCase("hit")) {
            controller.hit();
        } else if (line.equalsIgnoreCase("double")) {
            controller.doubleDown();
        } else if (line.equalsIgnoreCase("split")) {
            controller.split();
        } else if (line.equalsIgnoreCase("stat")) {
            out.print(controller.getStatistic());
        } else if (line.equalsIgnoreCase("exit")) {
            return false;
        } else if (line.matches("bet[0-9]+")) {
            String param = line;
            param = param.replaceAll("bet", "");
            int cash = Integer.parseInt(param);
            controller.bet(cash);
        } else if (line.contains("set:")) {
            String param = line;
            param = param.replaceAll("set", "");
            controller.setHand(param);
        }

        return true;
    }