changed play_lottery()