function tigerMac(speed,elems,hitStyle,fn){
var that=this;
var _speed = 200/speed,
_oldelems=$(elems),
_cycIndex=0;
var _elems=[_oldelems[0],_oldelems[1],_oldelems[2],_oldelems[5],_oldelems[8],_oldelems[7],_oldelems[6],_oldelems[3]],
_elemsL=_elems.length;
$(_elems[_cycIndex]).addClass(hitStyle);
var _timer = setInterval(function(){
$(_elems[_cycIndex]).removeClass(hitStyle);
if(speed >=6 && _elems[_cycIndex].getAttribute("isWin") =="true" ){
$(_elems[_cycIndex]).addClass(hitStyle);
clearInterval(_timer);
fn();
return;
}
if(_cycIndex + 1 >= _elemsL){
_cycIndex=0;
speed++;
clearInterval(_timer);
that.tigerMac(speed,elems,hitStyle,fn);
return;
}
_cycIndex +=1;
$(_elems[_cycIndex]).addClass(hitStyle);
},_speed);
},