well thats a fine mess you got me into.
If you could have held the whistle the game would have ended like it should. The next ? is how did the ball get to the basket for a score. was it off the head or did team A shoot it? IF it bounced off the head and went in, its a two point goal. If a player shot it, was the release before or after the whistle. If the release was before the whistle-two points. if after the whistle then its ball OOB nearest where the player had possession. Put the amount of time you KNOW should be on the clock.