def find_start(d):
    """finds the starting location for the program"""
    for y in range(1, len(d) - 1):
        for x in range(1, len(d[y]) - 1):
            if d[y - 1][x - 1:x + 2] == [True, True, False] and d[y - 0][x -
                1:x + 2] == [True, False, False] and d[y + 1][x - 1:x + 2] == [
                True, True, False]:
                return x + 2, y
            if d[y - 1][x - 1:x + 2] == [True, True, True] and d[y - 0][x -
                1:x + 2] == [True, False, True] and d[y + 1][x - 1:x + 2] == [
                False, False, False]:
                return x, y + 2
            if d[y - 1][x - 1:x + 2] == [False, True, True] and d[y - 0][x -
                1:x + 2] == [False, False, True] and d[y + 1][x - 1:x + 2] == [
                False, True, True]:
                return x - 2, y
            if d[y - 1][x - 1:x + 2] == [False, False, False] and d[y - 0][
                x - 1:x + 2] == [True, False, True] and d[y + 1][x - 1:x + 2
                ] == [True, True, True]:
                return x, y - 2
