Runs the script when the green flag is clicked