remove outsourced code in isEqualToSpriteObject method of SpriteObject