Ditto. This method is too complicated, and checking for the instance type is wrong. Just compare by coordinates.