def rotate_counter_clockwise(shape):
    """Given a shape, rotates it counter clockwise"""
    return [
        [shape[y][x] for y in range(len(shape))]
        for x in range(len(shape[0]) - 1, -1, -1)
    ]