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