private void addClient(Socket socket) {
        if(threadCount<clients.length){
            clients[threadCount] = new ServerThread(this,socket);
            try{
                clients[threadCount].open();
                clients[threadCount].start();
                threadCount++;
            }
            catch(Exception e){
                 System.out.println(e.getMessage());
                    }
        }
    }