Convert teams to use an enum rather than integers