function Mind() { this.newRun = function() { }; this.getAction = function ( state ) { return (1); }; this.endRun = function() { }; }