private void writeToButton(int i, String possibleAnswer, boolean isTrue) {
        switch (i) {
            case 1:
                frame.setButton1Text(possibleAnswer);
                bool1 = isTrue;
                break;
            case 2:
                frame.setButton2Text(possibleAnswer);
                bool2 = isTrue;
                break;
            case 3:
                frame.setButton3Text(possibleAnswer);
                bool3 = isTrue;
                break;
            case 4:
                frame.setButton4Text(possibleAnswer);
                bool4 = isTrue;
                break;
            case 5:
                frame.setButton5Text(possibleAnswer);
                bool5 = isTrue;
                break;
            case 6:
                frame.setButton6Text(possibleAnswer);
                bool6 = isTrue;
                break;
            default:
                break;
        }
    }