On the carpet next to the sofa, a brown dog lay on the ground, barking and biting his tail in circles.