The feature is randomly activated in the main game when a bet line win occurs

What is the correctly punctuated version of this sentence?
The feature is randomly activated in the main game when a bet line win occurs.