Wait, and as soon as the little purple man starts to move, place your mouse pointer/cursor on his path so he will 'crash' into it. Leave it exactly where it is, or the program will not learn and react.
Thanks for inspiration and ideas and tips from the Coding with Dad YouTube Channel! Hopefully I will be creating more versions of this in future projects! Keep up to date!