def _to_string(self) -> str:
    if (self.direction == DirectionType.Up):
        return 'Up'
    elif (self.direction == DirectionType.Down):
        return 'Down'
    elif (self.direction == DirectionType.Left):
        return 'Left'
    elif (self.direction == DirectionType.Right):
        return 'Right'
def _to_string(self) -> str:
    if (self.direction == DirectionType.Up):
        return 'Up'
    elif (self.direction == DirectionType.Down):
        return 'Down'
    elif (self.direction == DirectionType.Left):
        return 'Left'
    elif (self.direction == DirectionType.Right):
        return 'Right'