On the bed of the room a gray dog was sitting on a white sheet, beating and playing with his master.