The game ends at the end of a legal shot which pockets the 9-ball, or when a shooter forfeits the game as the result of a foul.