def get_neighbours_from_grid(row, column, grid):
    """Get from the grid neighbours of square on given row and column."""
    coordinates = []
    if row > 0:
        coordinates.append(('up', row - 1, column))
    if row + 1 < len(grid):
        coordinates.append(('down', row + 1, column))
    if column > 0:
        coordinates.append(('left', row, column - 1))
    if column + 1 < len(grid):
        coordinates.append(('right', row, column + 1))
    return [
        (neighbour, grid[square_row][square_col])
        for neighbour, square_row, square_col in coordinates
    ]