Make sibling nodes independent of each other in terms of collision

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Fuzuli Gulmammadli

I am currently developing a multiplayer game on godot 3.4. It is a space game where spaceships fight with each other on a static map. I allow only 6 players on a single Game. If more players join I create a new Game and so on. My node structure looks like this:

Root:
  Server:
    Game:
      Player1
      Player2
    Game:
      Player3
      Player4

So normally players under one Game node should not interact with other player in other Games. So no collisions or anything else. My Player nodes are KinematicBody2d. As a result as they have a common parent all players under different games all collide and interact with each other. As a solution I see creating dynamic collision layers for each created game and their children. But is there a better solution for this case?