014: implemented straight mode (allowDiagonal=false)