Heelp...deadline ahead..!

i have a project…a card game with flash action script 2.0.
everything seems fine after i make computer player for my game.
I had a problem on my game. At the time of the computer players do turn, the card is issued shall be in accordance with the color or number on the card in the middle of the game.
I have been able to make the issued cards at random, but the card is issued by the players computer, not in accordance with the card in the middle of the game.

is there anything that can help me ??!?!?!?!:(:(:frowning:

it is just like play UNO card…please help…thx…