Added some betting logic.