def find_opposite(direction:str):
    """
        Finds the oppisite direction of the current direction

        :param direction: The current direction of which a Ghost is currently moving
        :return string: Returns the opposite direction of the parameter direction
    """

    if direction == 'u':
        return 'd'                      
    if direction == 'l':                  
        return 'r'                      
    if direction == 'r':                  
        return 'l'                      
    if direction == 'd':                  
        return 'u'