fixed bugs with team scoring