Question: why was igor karkaroff in the great hall?
Answer: It was Barty Crouch Jr., going in to put Harry's name into the goblet; he was using his Polyjuice to disguise himself as Karkaroff in case someone else came into the room and caught him tampering with the Goblet.