Trying to implement values_in_same_square method