Fixed looping bug and put a maximum sound limit