added random function to pick cards