Created the mixing function for deck