Fixed hat direction lookup
Merge pull request #9 from tallerthenyou/hat_fix

Fixed hat direction lookup