james naismith became famous for creating the game of basketball , a stroke of genius that never brought him fame or fortune during his lifetime , but enormous recognition following his passing in 1939 .