at map init
create a countdown timer, set it for a 5 minute countdown
pick every hero own by players from team a and team b
add them to groups (a and b)
when countdown timer expires, pick heroes from the group and move them to your region
check if heroes in groups are dead then the survived team won the match