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