Update functions.js

deleted any existing cards when shuffle button pressed