When the green flag is clicked, move your mouse and press the space button inside to stop the project. Then, seperate the code that makes Scratchy follow the mouse and the code that stops the project.