Explore the outskirts. The 3 encounters are North > West > South, South > South > South and finally West > West > West. The hat specifically is the second one