the rest of the day was spent aimlessly wandering on the rough lanes around the perimeter of the city as he replayed in his mind various social encounters of the past , but rewriting them with his new commitment .