Change from queen's case to rook's case for connected cells