Rewrote auto-betting