Thanks to @kriblo_test for showing the code in this project https://scratch.mit.edu/projects/1162514587/