public void setEngine(CoreEngine engine) {
		if (this.engine != engine) {
			this.engine = engine;

			for (GameLeaf leaf : leaves) {
				leaf.addToEngine(engine);
			}

			for (GameBranch child : children) {
				child.setEngine(engine);
			}
		}
	}