Shortly after the city's incorporation, the State of Nevada reluctantly became the last western state to outlaw gaming. This occurred at midnight, October 1, 1910, when a strict anti-gambling law became effective in Nevada. It even forbade the western custom of flipping a coin for the price of a drink. Nonetheless, Las Vegas had a diversified economy and a stable and prosperous business community, and therefore continued to grow until 1917. In that year, a combination of economic influences and the redirection of resources by the federal government in support of the war effort forced the Las Vegas and Tonopah Railroad to declare bankruptcy. Although William Clark sold the remains of the company to the Union Pacific Railroad, a nationwide strike in 1922 left Las Vegas in a desperate state.