def render_grid(grid):
    """Helper function to turn all cells to the same value"""
    rows = grid.shape[0]
    cols = grid.shape[1]
    for row in range(rows):
        for col in range(cols):
            if grid[row, col] != 1 and grid[row, col] != 0:
                grid[row, col] = 1
    return grid