x=q=15;y=z=10;Q=150;W=-31;H=U=0;V=E=1;N=[];R=Math.random;n=[0,-1,0,1];D=function(d,e,f,g,j){a.fillStyle=d;a.fillRect(e,f,g,j)};T=function(d,e,f,g){for(k=9;k--;)h=7<k?1:atob("b8dtRU9nzeU=").charCodeAt(d)>>k&1,G=k/3|0,g&&(c[30*(3*f+G)+3*e+k%3]=!h+1),D(h?"#666":"#333",e+5*(k%3),f+5*G,5,5)};r=function(){D("#111",0,0,Q,Q);for(i=Q;i--;)8>a[i]&&T(a[i],i%z*q,~~(i/z)*q),T(N[i],155,i*q);for(i=900;i--;)2<c[i]&&D("#6bf",5*(i%30),5*~~(i/30),5,5);D("rgba(9,255,9,.3)",155,0,q,q);D("#444",Q,0,5,Q);1>W&&D("#ccc",Q,0,5,-5*W);E||(D("rgba(255,9,9,.5)",0,0,Q,Q),D("#fff",0,0,0),a.fillText("Score: "+U,q,75))};setInterval("if(0<W++&&E){O=x*z+y;for(j=5;j--;)if($=3<j?H:n[j],_=3<j?V:n[3-j],1<c[30*(ty=y+_)+(tx=x+$)]&&(3<j||$^-H&&_^-V)){c[30*(y=ty)+(x=tx)]=3;b[~~(ty/3)*z+tx/3|0]=1;H=$;V=_;break}U++;O==x*z+y&&(E=0)}r()",500);for(i=Q;i--;)N[i]=1+~~(7*R(a[i]=8))%8;a[35]=0;b[35]=1;T(0,5,3,1);c.onclick=function(d){if(E&&0<=(K=d.pageX)&&K<Q&&0<=(J=d.pageY)&&J<Q&&!b[p=(v=J/q|0)*z+(F=K/q|0)])a[p]=N.shift(N.push(1+~~(7*R())%8)),r(T(a[p],F,v,1))}
eD1xPTE1O3k9ej0xMDtRPTE1MDtXPS0zMTtIPVU9MDtWPUU9MTtOPVtdO1I9TWF0aC5yYW5kb207bj1bMCwtMSwwLDFdO0Q9ZnVuY3Rpb24oZCxlLGYsZyxqKXthLmZpbGxTdHlsZT1kO2EuZmlsbFJlY3QoZSxmLGcsail9O1Q9ZnVuY3Rpb24oZCxlLGYsZ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