def get_neighbors(x, y):
    """Returns the eight neighbors of a point upon a grid."""
    return [
        [x - 1, y - 1],  [x, y - 1],  [x + 1, y - 1],
        [x - 1, y    ],               [x + 1, y    ],
        [x - 1, y + 1],  [x, y + 1],  [x + 1, y + 1],
    ]