Two dimensional grids of ASCII characters are a common Advent of Code theme, so we use our utility Grid module to parse the data.
Grid