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