dir value is now understandable up,down,left,right