in his dream , fat charlie supposed that the cake was filled with black beads , with beads of black glass or of polished jet , and then , as they tumbled out of the cake , he realized that the beads had legs , each bead had eight clever legs , and they came out the inside of the cake like a black wave .