Added code to place a bet