private boolean loadNetwork(String file, boolean forDraw){
		boolean loaded = false;
		Network net = null;
		//Try to load from a file
		if (file != null){
			File f = new File(file);
			if (f.isFile()){
				try{
					net = new Network(file);
					loaded = true;
				} catch (Exception e){
					System.out.println("Warning! Could not load Casandra weights!");
				}
			}
		}
		//Otherwise, create a new network
		if (!loaded){
			int inputs = nodeCount(forDraw, true);
			net = new Network(new int[]{inputs, forDraw ? inputs*2 : inputs*3, nodeCount(forDraw, false)});
		}
		//Validate network size
		else if (net.inputNodes() != nodeCount(forDraw, true) || net.outputNodes() != nodeCount(forDraw, false))
			return false;
		//Save network
		if (forDraw){
			drawNet = net;
			drawNet_file = file;
		}
		else{
			playNet = net;
			playNet_file = file;
		}
		return true;
	}