def get_neighboors(board, x, y):
    """Return coordinate of all neighoors
    that are not "0"

    Args:
        board (np 2D array): the state of the game
        x (int): x coordinate to check
        y (int): y coordinate to check
    """
    out = []

    for i in [-1, 0, 1]:
        for j in [-1, 0, 1]:

            if j == 0 and i == 0:
                continue

            n_x, n_y = x + i, y + j

            if n_x < 0 or n_x > board.shape[1] - 1:
                continue

            if n_y < 0 or n_y > board.shape[0] - 1:
                continue

            if board[y + j, x + i] != 0:
                out.append(board[y + j, x + i])

    return out