# HINT 1
Squares do not affect the gate.
# HINT 2
The opening of the gate is influenced by the location of the boxes.
# HINT 3
if there is one window to the left and right of an empty cell, then all gates above and below this cell open, and vice versa.