Implement hashCode() and equals() in AbstractNPC