writing the drawCard method