the hobbit felt quite crushed , and as there seemed nothing else to do he did go to bed ; and while the dwarves were still singing songs he dropped asleep , still puzzling his little head about beorn , till he dreamed a dream of hundreds of black bears dancing slow heavy dances round and round in the moonlight in the courtyard .