public void sendVote(Vote vote){
        if (output != null) {
            try {
                output.writeObject(vote);
                output.flush();
                output.reset();
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }
    }