protected int nextGridToRestart(){
  if (currRestartGridId == serverCount())   currRestartGridId=0;
  return ++currRestartGridId;
}

protected int nextGridToRestart ( ) { if ( currRestartGridId == serverCount ( ) ) currRestartGridId = 0 ; return ++ currRestartGridId ; }
return the index of the next grid to restart .
