Complex sentence: The referee has some discretion in making this call; for example, a ball which is merely deflected by a teammate may still be picked up by the goalkeeper.
Split into simpler sentences: The referee has some discretion in making this call. For example, a ball which is merely deflected by a teammate may still be picked up by the goalkeeper.