public void loadAll(){
		engine.setBindings(bindings, ScriptContext.ENGINE_SCOPE);
		try {
			if(!this.scriptFiles.isEmpty()){
				for(String script:this.scriptFiles){
					this.loadFile(script);
				}
			} 
		} catch(IOException e){
			this.errors.add(e.getMessage());
		}
		
		// check to make sure the required script functions are present.
		String funcs[] = {this.initGameFunction,this.preBeginPlayFunction,this.postBeginPlayFunction};
		for(String f:funcs){
			if(this.engine.get(f) == null) {
				this.errors.add("Could not find function: "+f);
			}
		}
	}