Change cards info to hash