Planning and exploration in stochastic relational worlds