Add a new script to the EndFlag node

Connect a new body_entered signal to the node.

Add a new export variable to store the next scene file to load

Drag Level1.tscn into the space in the inspector

If we detect the player has collided with the flag

We change scenes to the file we used.

Place your flag in the level and test your game.