public void registerClient(ObjectInputStream IStream, ObjectOutputStream OStream) throws ClassNotFoundException, IOException{
    	MessagePacket connectMessage;
    	IStream.readObject();
    	connectMessage = (MessagePacket) IStream.readObject();
    	if(!sk.isConnected(connectMessage.getNick())){
    		ClientInfo clientInfo = new ClientInfo(connectMessage.getNick() , client,IStream,OStream);
    		if(checkNick(connectMessage.getNick())){
    			sk.clients.add(clientInfo);
    			sk.callClientConnectEvent(clientInfo);
    		}
    		else{
    			clientInfo.kick("Unsupported chars");
    		}
    	}
		else{
			OStream.writeObject(new MessagePacket(connectMessage.getNick(), "corekick", "Same nick playing"));
			OStream.flush();
			if (!client.isInputShutdown()) {
				client.shutdownInput();
			}
			if (!client.isOutputShutdown()) {
				client.shutdownOutput();
			}
			if (!client.isClosed()) {
				client.close();
			}
		}
	}