Function isValidZDirection

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