Changes to fix problems with the danger index on the Square class to
make it more reliable and useful.