public Client(Socket socket, ObjectInputStream in, ObjectOutputStream out, ServerMain main){
		networkmanager = new ClientNetworkManager(main, socket, this, in, out);
		networkmanager.sendData(STCTransferMode.Init);
		while(ID == -1);//wait for ID to init
		this.main = main;
	}