Including function to calculate the 9 squares

And a test showing that the calculation of the squares are correct
declare for loop as `for(var y = col; y < col + 2; y++) {` to avoid y leaking into global scope.
Then you will be able to use `y` in other functions without messing with this variable