I tried to place the sound out of the while-loop, but that doesn't work either.