Findsquares now returns the list of squares it found

Also some trivial bugs were fixed in code that hadn't been executed
before, because the list of squares was always empty.