added betting logic