Added getID function to convert card to an integer and utilized correct constant in constructor