added cur_index reset at the end of each round