Nock,
What you were watching was a queen checking out a cell to see if it was prepped for her to lay an egg in. If it was ready, she would measure the diameter of the cell to determine if she needed to fertilize the egg, female, or lay it unfertilized, a drone.
Jim Altmiller