That code is from a youtube tutorial.
The source code is on pastebin and is exactly the same. (Can't link it because "new member")
I don't usually call people but please ...
https://pastebinDOTcom/MQrnbFEx
Edit: Well if you don't mind I bypass the rule.