Fix a bug where game would freeze when trying to restart while game is paused