getDirection has been fixed

used to return null when there was no movement