unsure

I went in at 6 weeks and had an ultrasound, baby was measuring a week behind and heartbeat was only 106. Went in today at 9w4d and was told that at my last appointment the baby was beginning to miscarry itself. The baby seems to be growing okay now but doesn't move like I hear most babies do around now. Heartbeat is now 173. He said everything seems to be fixing itself but I have 2 appointments in the next 5 weeks to check and also check my uterus because it's mostly round but my muscles contract and cramp and squish the baby a bit and  the doctor doesn't like seeing that.