I want to create a 6 players real-time match and algorithm for that is:
1.One user will send invite other 5 to accept his invitation and join the match.
2.After 10 second check which of the other 5 players accepted that invite and how many players are there in that match instance(like 3 are there in that match including challenger).
3.Now go for random match request and find the 3 player and add up them in the match instance that already having 3 players.
4.Now with that 5 players and the user we will create a single match instance with all 6 players and start a real-time match between and destroy the instances created for this process