Move sound within if because it was being played twice.