Squares Detection