Tried to implement the squareBlocks function. I failed.