Fixed some faulty logic in figuring out the other character's ID