split Card from gameFunctions.js