Ex boyfriend

Hi so me and my ex broke up about 1 year ago and I still really really miss him. Is this bad ? Also I had a sex dream about him a few nights ago and I can’t stop thinking about it I wish it would happen in real life again. Is it bad that I still masterbute over him ? Idk how to yet over him he was the best thing that ever happened to me