added functionality to betMax button