function Mind() { this.newRun = function() { }; this.getAction = function ( x ) { // return ACTION_STAYSTILL; return ( randomintAtoB (0,4) ); // move randomly }; this.endRun = function() { }; }