replaced the enum Team by the class Team in all classes that needed it