@Override
    public Action play(Hand hand, Blackjack blackjack) {
        Action result = Action.STAND;

        if(hand.getScore() >= 21) {
            return result;
        }

        System.out.println(String.format("Play %s. Hit(h), Stand(s), Play Dead(q)?", hand.id));
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        try {
            String inputLine = br.readLine().trim();
            while (!(inputLine.equals("h") || inputLine.equals("s") || inputLine.equals("q"))) {
                System.out.println(String.format("%s is not an option.", inputLine));
                inputLine = br.readLine();
            }
            if (inputLine.equals("h")) {
                result = Action.HIT;
            } else if (inputLine.equals("s")) {
                result = Action.STAND;
            } else {
                throw new IllegalStateException("Someone is cheating here");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
        return result;
    }