In the pic show below, after 1 lose, program can't detect lose, will stuck there and unable to go further, then it stop by itself.
Now I write another scrpt to reconnect by detect home page and press A, restart smart program.
Can I change something or write some code to fix it, make it useful? If could, where should I start with?

In the pic show below, after 1 lose, program can't detect lose, will stuck there and unable to go further, then it stop by itself.

Now I write another scrpt to reconnect by detect home page and press A, restart smart program.
Can I change something or write some code to fix it, make it useful? If could, where should I start with?