function Mind() { this.newRun = function() { }; this.getAction = function ( state ) { console.log('Get Action!'); return ( AB.randomIntAtoB ( 0, 4 )); }; this.endRun = function() { }; }