learning to planning in dynamic environment modeled using pomdp