The game could not end until the team scored the goal.
A football team is a group of games played on time.
A player on a football team scores goals when the clock allows.
Games end when the time is up, not when a team scores a goal.