Add getNextDirectionFromPoint