added function for placing a bet