allDirectionsMax n grid = maximum [horizontalsMax n grid, verticalsMax n grid, diagonalsMax n grid]
allDirectionsMax n grid = maximum [horizontalsMax n grid, verticalsMax n grid, diagonalsMax n grid]
allDirectionsMax n grid = maximum [horizontalsMax n grid, verticalsMax n grid, diagonalsMax n grid]