update to enum and also check comm in battlecode