variable time for gamble & accepts doubles + main function added