Allowed directions and getDirection