Fixed the bug! And formatted the source code.

If you want just the fix, and no formatting, see the other RP:
https://github.com/Pim16aap2/SquareSound/pull/1