West Virginia’s gamble to get ahead of the competition paid off when the U.S. Supreme Court ruled Monday morning that states are now free to legalize sports gambling.

State lawmakers voted this past regular session to legalize sports betting in West Virginia at the state’s five casinos and through smart phone apps run by the casinos. Gov. Jim Justice allowed the bill to become law without his signature.

West Virginia Lottery Director Alan Larrick outlined the next step in the process.

The Supreme Court was ruling on a New Jersey challenge to a 1992 law — the Professional and Amateur Sports Protection Act — outlawing sports betting in states other than those that were grandfathered in, specifically Nevada.