All of this code was thought up by me. Except pi. I had to search up a scratch discussion post to find out how to code pi.
Credit to the scratch discussion post that showed me how to find pi.