Added squareNum out of bounds checks in the KnightsTourAlgorithm class.