He wants to say goodbye to all his neighbors before leaving, and goes to visit their homes one by one. By the end of the day, though, Sam realizes he doesn't know the way to Alaska, and decides to return home.
He wishes to bid farewell to all his neighbors before departing, and visits their homes individually. Eventually, however, Sam discovers he cannot find his way to Alaska, so he chooses to return home.