Fixed calculating of the squareSideLength