def fetch_neighbours(matrix, y, x):
    """Find all neigbouring values and add them together"""
    neighbours = []
    
    try:
        neighbours.append(matrix[y-1][x-1])
    except IndexError:
        neighbours.append(0)
    
    try:
        neighbours.append(matrix[y-1][x]) 
    except IndexError:
        neighbours.append(0)
    
    try:
        neighbours.append(matrix[y-1][x+1])
    except IndexError:
        neighbours.append(0)

    neighbours.append(matrix[y][x-1])
    neighbours.append(matrix[y][x+1])

    neighbours.append(matrix[y+1][x-1])
    neighbours.append(matrix[y+1][x])
    neighbours.append(matrix[y+1][x+1])

    return sum(neighbours)