def get_level_change(grid, row, col):
    """Get level change for (row, col) on grid."""
    if (row == 2
        or row == len(grid) - 3
        or col == 2
            or col == len(grid[0]) - 3):
        return -1
    return 1