Added spec for the class.
Splitting code into lib and main.
Test didn’t test anything; now works.
Refactor: use Ruby’s attr_reader instead of handwritten getters.
Refactor: use any? and all? with a block directly.
Long overdue TODO: @grid becomes @matrix inside Grid.