before he sat down in his chair , he closed his door , took out his pen scanner and walked slowly round the room , studying the light on the top of the pen : if the light turned red , the room had been bugged , but if it stayed green , the room was clean and he could work freely without fear of eavesdropping .