Closes #14. Pauses automatically when game window is hidden (not active).