AVAudioPlayer EXC_BAD_ACCESS

I was getting bug report from user(specifically ios 13.1) about my game TwoChoicez that the app was crashing and unable to start. The problem was that I was initializing the Audio Player the wrong way.

Wrong:

var player = AVAudioPlayer()

Right:

var player: AVAudioPlayer?