Multiagent Planning with Factored MDPs