added equals method to Cell class