public ArrayList<int[]> setConnections(Network net) {
		// Connect layers
		System.out.println("Setting Connections...");

		for (int x = 1; x < net.getLayerAmount() + 1; x++) {
			int input = 0;
			System.out.println("Setting connections for layer " + x);

			do {
				System.out
						.println("Please enter which input element is to be connected to layer"
								+ x + ": ");
				int inputToNet[] = new int[2];
				inputToNet[0] = x;
				inputToNet[1] = Integer.parseInt(scanIn.nextLine());
				connections.add(inputToNet);
				input++;

				System.out
						.println("Do you want to add another connection? Y or N");
				String newConnection = scanIn.nextLine();
				if (newConnection.contains("Y")) {
					connecting = true;
				} else {
					connecting = false;
				}

			} while (input > net.getInputAmount() || connecting != false);
			connecting = true;
		}

		net.setConnections(connections);
		return connections;
	}