getting started on the planning algorithm