Blackjack project and some functions