_ _ | | | _ _ | | | _ _ | | | _ _
The difficulty here is that the problem depends largely on human perceptual capabilities. Computers lack these (unless we make this problem a computer vision problem, which is *much* harder!) A data structure needs to be created that permits the easy detection of squares.