Calculating team score