Fix pausing and unpausing of the game loop