added a method that checks the current direction and compares it with a
direction to hold
Merge branch 'master' of https://github.com/MindstormsNXJ/mindstorms.git