so I want it to move to the next group of tables after it is done with one group I know how to do the groups but it changing at the right time is the challenging part
var group1 = ["a", "b", "d"];
var group2 = ["a", "b", "d"];
var group3 = ["a", "b", "d"];
var groups = [group1, group2, group3];