Goal-Oriented Action Planning