Maze Game

Pls help!!
I have made two maps for my maze game separately but i didn’t know how to
get through the second map after completing the first map…

What do you think can be the logic for that?

Tnx…