private void buildCheckConnection(){
		checkConnection = new Thread(new Runnable(){
			public void run(){
				while(true){
					try {
						if(serverConnected != null)
							serverConnected.getName();
					} catch (RemoteException e) {
						gui.addLogArea("Persa connessione con " + getServerName() + "\n");
						serverConnected = null;
						serverName = null;
					}
					try {
						Thread.sleep(5000);
					} catch (InterruptedException e) {}

				}
			}
		});
		checkConnection.setDaemon(true);
		checkConnection.start();
	}