Function isValidXYDirection

Returns true if the given direction is one of the known XY ones.