Completed Kingdom.getID() method