Double click green flag. Description is in the project. If you have not already viewed my main algorithm project visit: https://scratch.mit.edu/projects/167229949/
Feel free to use this algorithm in your projects. If you have any questions, please ask me in the comments.