Compute score

Implemented the team_computeScore function