Making a Card game and need help

I’m making a card game and i been struggling with the placing cards down is there any suggestions on how to do it i have a on drag even and a widget that changes to a random color when dropped on but i want it to change in to a widget with data that is coming form a data table if you need more info to try to help me figure this out pls do i really need anything.