You didn't mess up anything. Yes the game could have been over if team A had also declined the team B foul, but I'm not surprised that team A accepted the penalty and forced team B to snap it. You never know, team B could have muffed the snap and team A could have recovered and ran for a tying TD, team A is not just going to let the game end if they have a chance.
Good job.