Thanks for your reply.
The dealer is not playing instantly. Once the players presses “STAND”, the game generates two cards and then uses recursive function until it reaches 17/21 or busts. I have no idea how to slow it down to make it look more like a human player.
As for the aces I had their value set as either 10 or 1, so that’s why the scoring was off.