Coffeescript unmatched outdent error

Solution 1:

A bit tough to see but it appears that you are missing a closing parenthesis on line 4:

if(Array.isArray(grid[rows][columns])

In general, for this particular error, the problem will almost always lie with indention or unbalanced parenthesis or brackets/braces.