Fixed most of the bugs on the team class