Alice had no idea what to do , and in despair she put her hand in her pocket , and pulled out a box of comfits , -LRB- luckily the salt water had not got into it -RRB- , and handed them round as prizes .