he bent quickly to gather up the pencils , but when he went to put them back in the cup she wrested them from his hand and began sorting the colors , frowning in concentration as she manipulated them .