Added brackets to while loops in PauseMessage, PlayMessage, and SkipMessage