Simple blackjack game has me stumped

I’m attempting to create a very basic blackjack game where the user will
get two cards and choose to hit or stay. When the user stays the dealer
would then get two cards. After the dealer gets two cards the user’s
card values are compared to the dealers values to determine the winner.
I had the user’s portion working perfectly (perfectly meaning working
without fatal errors). 21.rb is the working one where only the user
gets cards. blackjack.rb is my attempt to introduce the dealer into the
game…this is where I’m stumped. i’m not expecting any rock solid help
but would highly appreciate a suggestion stepping in the right
direction…Thank you!