function Mind() { this.newRun = function () { }; this.getAction = function (state) { stateHistory.push(state); var ai = x[0]; var aj = x[1]; var ei = x[2]; var ej = x[3]; return (0); }; this.endRun = function () {}; }