@Override
	public void run() {
		System.out.println("Hello, The Host is started");
		while(nm.comp.isRunning()){
			try {
				Socket socket = serverSocket.accept();
				Logger.println("Connection from IP: " + socket.getInetAddress());
				DataOutputStream out = new DataOutputStream(socket.getOutputStream());
				DataInputStream in = new DataInputStream(socket.getInputStream());
				String data = in.readUTF();
				PacketAction pa = PacketActions.parsePacketData(data, networkType);
				if(pa != null){
					if(pa instanceof PacketLoginAction){
						PacketLoginAction pla = (PacketLoginAction) pa;
						Boolean b = false;
							for(int i = 0; i < hostClients.length; i++){
								if(hostClients[i] == null){
									pla.activate(new Object[]{this,socket,in,out,i});
								}
							}
							if(!b){
								sendPacket(new PacketRejected(),"slots",out);
							}
					} else {
						sendPacket(new PacketRejected(),"invalidLogin",out);
					}
				}
			} catch (Exception e) {
			}
		}
	}