fixed hash syntax issues in card class