moved Direction-related methods to Direction enum