public void start() {
        VoteFrame stemFrame = new VoteFrame(this);
        ResultJFrame localUitslagJFrame = new ResultJFrame(this);

        localUitslagJFrame.setVisible(true);
        stemFrame.setVisible(true);

        this.uitslagJFrame = localUitslagJFrame;
        this.voteFrame = stemFrame;

        boolean running = true;
        while (running) {
            String line = readString("Wat wil je doen?");
            String[] words = line.split(" ");
            if (words.length == 3 && words[0].equals("ADD") && words[1].equals("PARTY")) {
                this.voteMachine.addParty(words[2]);
            } else if (words.length == 1 && words[0].equals("PARTIES")) {
                this.voteMachine.getParties();
            } else if (words.length == 1 && words[0].equals("EXIT")) {
                running = false;
            } else {
                print("Unknown command");
            }
        }
    }