Is it necessary to check if `matrix_finished?` is called here? Would it be enough to just check if the return values are equal?