function Mind() { this.newRun = function() { }; this.getAction = function ( a ) { return ([a[1], a[0]]); }; this.endRun = function() { }; }