Use a set instead of a list for directions.

I don't want to store duplicate directions in the
list.