private String chooseWord(int length) {
        Random r = new Random();
        String next = "";
        while (next.length() != length) {
            next = this.words.get(r.nextInt(words.size()));
        }
        return next;
    }