updated challengeBet, createBet functions