Concerning #794: Debug, added number of directions assertion