it turned out that the dog pack was housed in a building that adjoined the stables and the mews , the three buildings keeping all of the animals together instead of scattered all over the castle grounds .