Dyna Planning using a Feature Based Generative Model