Fix team scoreboards, also add some debugging in scoreboards.