equals method in Position class have some error