The ball should keep moving until it is caught by the goalkeeper or until it reaches the goal line. So we'll introduce a repeat until block and we'll set its condition to be touching goalkeeper or touching the goal line, which, in my case, is colored black.