overrode the == and != operators in Grid