Simple: you are recording the points they scored, but not who they are.
if(points>potgB)
{
points = teamB[NoB];
potgB = teamB[NoB];
}
Tells you the highest points, yes. But you don't record NoB (or NoA) anywhere, so you have no idea later which player it was.
The way I would do it it not to store
points
or
potG
but
player
- the NoB value - instead. Because you can use that at any time to access the player point information.