Once the maze is created, press space to have it be solved. If you press space again, it'll reset, so you can solve it again, Repeat
Thanks to @karisantos, because I'm in her scratch class