Added routine to find squares, works nicely for targets