fixed crash when the play button in the game view is pressed