@Override
    public void run() {
        while (true) {
            try {
                Socket s = ss.accept();
                DataInputStream din = new DataInputStream(s.getInputStream());
                data = din.readUTF();
                repaint();
                din.close();
                s.close();
            } catch (IOException ex) {
                Logger.getLogger(Eliminations.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }