Use when instead of if
Re-solve the maze when finished
Solve a *new* maze when finished