Move the player to the x by arrow keys. every time you reach the end it will refresh the maze.
I make this project on 1 day so give it a like. see my other projects: https://scratch.mit.edu/projects/606433375 https://scratch.mit.edu/projects/606439524