func: function initialBattle(uint id1,uint total1,uint id2,uint total2) onlyWit() public returns (uint wid){
  uint darklord;
  if(total1.mul(2)>5000){
  darklord=total1.mul(2);
  }else{
  darklord=5000;
  }
  
  uint256 threshold = dataCalc(total1.add(total2),darklord);
  
  uint256 i = uint256(sha256(abi.encodePacked(block.timestamp, block.number-i-1))) % 100 +1;
  if(i <= threshold){
  wid = 0;
  winnerAdd.push(msg.sender);
  }else{
  wid = 1;
  }
  battleresults.push(Battlelog(id1,id2,wid,msg.sender));
  _delWit(msg.sender);
  }