public void setConnections() {

		System.out.println("Cog - Connecting cog nets");

		// ======================== roomnet inhibits 'seenroom' in factnet
		/*
		for (int i = 0; i < RoomNet.getSize(); i++) {
			if (RoomNet.neurons[i].isInhibitory()) {
				int toNeuron = (i%40)+760;
				RoomNet.neurons[i].addConnection(FactNet.neurons[toNeuron],-3.0);

				toNeuron = ((i+1)%40)+760;
				RoomNet.neurons[i].addConnection(FactNet.neurons[toNeuron],-3.0);
				toNeuron = ((i+2)%40)+760;
				RoomNet.neurons[i].addConnection(FactNet.neurons[toNeuron],-3.0);
				toNeuron = (i%40)+800;
				RoomNet.neurons[i].addConnection(FactNet.neurons[toNeuron],-2.0);

				toNeuron = ((i+1)%40)+800;
				RoomNet.neurons[i].addConnection(FactNet.neurons[toNeuron],-2.0);
				toNeuron = ((i+2)%40)+800;
				RoomNet.neurons[i].addConnection(FactNet.neurons[toNeuron],-3.0);
			}
		}
		*/

		double weight = .001;

		/*
		// ======================== cur room -> last room
		for(int room=0; room<4; room++) {
			int from = room*200;
			int to = from+200;

			for(int i=from; i < to; i++) {
				if(!RoomNet.neurons[i].isInhibitory()) {
					for(int syn=0; syn<3; syn++) {
						RoomNet.neurons[i].addConnection(RoomNet2.neurons[getRandRange(from, to)], 1.5);
					}
				}
			}
		}
		*/

		// ======================== rooms->seqnet

		for(int i=0; i<RoomNet.getSize(); i++) {
			if(!RoomNet.neurons[i].isInhibitory()) {
				for(int syn=0; syn<10; syn++) {
					RoomNet.neurons[i].addConnection(CogSeqNet.neurons[getRandRange(0, CogSeqNet.getSize())], weight);
				}
			}
		}

		for(int i=0; i<CogSeqNet.getSize(); i++) {
			if(!CogSeqNet.neurons[i].isInhibitory()) {
				for(int syn=0; syn<25; syn++) {
					CogSeqNet.neurons[i].addConnection(RoomNet.neurons[getRandRange(0, RoomNet.getSize())], weight);
					CogSeqNet.neurons[i].addConnection(RoomNet2.neurons[getRandRange(0, RoomNet2.getSize())], weight);
				}
			}
		}

		// ======================== rooms2->sequence->room2
		for(int i=0; i<RoomNet2.getSize(); i++) {
			if(!RoomNet2.neurons[i].isInhibitory()) {
				RoomNet2.neurons[i].addConnection(CogSeqNet.neurons[getRandRange(0, CogSeqNet.getSize())], weight);
			}
		}
	}