How does the next paragraph end?

Two water polo teams compete in a pool. The referee blows the whistle on a foul by the defender and the play stops. when the play
resumes the player passes the yellow ball to a team mate who takes a shot and scores a goal.