chapter 2 better path finding

chapter 2 better path finding