function Mind(){prev=[-1,-1],nextMove=-1,this.newRun=function(){},this.getAction=function(o){return me=[o[0],o[1]],enemy=[o[2],o[3]],ops=function(o){return options=[[0,0],[0,0],[0,0],[0,0]],1!=o[1]&&(options[0]=[o[0],o[1]-1]),18!=o[1]&&(options[1]=[o[0],o[1]+1]),1!=o[0]&&(options[2]=[o[0]-1,o[1]]),18!=o[0]&&(options[3]=[o[0]+1,o[1]]),console.log(options),options}(me),bm=function(o,e){for(best=0,bestMove=[-1,-1],console.log("OPTIONS",o),i=0;i<o.length;i++)distance=o[i][0]-e[0]+(o[i][1]-e[1]),distance<0&&(distance*=-1),console.log(distance),distance>best&&(best=distance,bestMove[0]=o[i][0],bestMove[1]=o[i][1]);return console.log("Best Move: ",bestMove),bestMove}(options,enemy),move=function(o,e){return e[0]>o[0]?1:e[0]<o[0]?0:e[1]>o[1]?2:3}(me,bm),prev[0]==bm[0]&&prev[1]==bm[1]&&(move=AB.randomIntAtoB(0,3)),prev=bm,console.log(move),move},this.endRun=function(){}}