substituting: identifies IDs for both incoming and outgoing players