Solving Motion Planning Tasks with a Scalable Generative Model