def move_to_tile(location, tile):
    """ Return the action that moves in the direction of the tile. """

    # actions = ['', 'u', 'd', 'l', 'r', 'p']
    print(f"my tile: {tile}")

    # see where the tile is relative to our current location
    diff = tuple(x - y for x, y in zip(location, tile))

    if diff == (0, 1):
        action = 'd'
    elif diff == (1, 0):
        action = 'l'
    elif diff == (0, -1):
        action = 'u'
    elif diff == (-1, 0):
        action = 'r'
    else:
        action = ''

    return action