implemented betting