Diffusion Model For Planning Purposes