Updated updateDirection with correct detection.
Merge branch 'master' of github.com:Daminvar/AI-Project
Updated with Error removed.