Calculates team score for all teams