@Override
	public void run() {
		log = Logger.getInstance();
		relConnZones = new HashMap<String, FirebrainZones>();
		relConnZones.put(TabletTypes.R.toString()+ TabletTypes.G.toString(), FirebrainZones.Y);
		relConnZones.put(TabletTypes.G.toString()+ TabletTypes.R.toString(), FirebrainZones.Y);
		relConnZones.put(TabletTypes.G.toString()+ TabletTypes.B.toString(), FirebrainZones.C);
		relConnZones.put(TabletTypes.B.toString()+ TabletTypes.G.toString(), FirebrainZones.C);
		relConnZones.put(TabletTypes.B.toString()+ TabletTypes.R.toString(), FirebrainZones.P);
		relConnZones.put(TabletTypes.R.toString()+ TabletTypes.B.toString(), FirebrainZones.P);
		try {
			log.log("FB - Firebrain socket launched.");
			fireBrainSocket = new Socket("127.0.0.1", port);
			fbOut = new BufferedWriter(new PrintWriter(
					fireBrainSocket.getOutputStream(), true));

			while(true){
				Thread.sleep(100);
			}
		} catch (IOException e) {
			System.out.println("Init: " + e.getMessage());
			try {
				if (fireBrainSocket != null)
					fireBrainSocket.close();
				if (fbOut != null)
					fbOut.close();
				if (fbIn != null)
					fbIn.close();
			} catch (Exception e2) {
				System.out.println(e.getMessage());
			}
		} catch (InterruptedException e) {
			e.printStackTrace();
		} finally {
		
		}

	}