Fixing

I’ve traced the problem to the is_square method. For some reason, it
does not work. Why? I do not know.