public Node getNodeForState(State state) {
		/** Search through all nodes for state. */
		for (int k = 0; k < myNodes.length; k++) {
			Node node = myNodes[k];
			if (node.getState() == state)
				return node;
		}
		return null;
	}