Creates getCurrentBet function and it works