Split into modules and function to convert world to PDDL