Advent of Code 2020: Day 11 (Ruby solution)