Changed logic for determing spies and rebels.