changed foreach loop to displays teams; please don't break