Alright I'm going to go OOC for a second here.

so I meant for there to be a javascript window here but I can't get it to work after 3 hours of testing shit, so just open it in IntelliJ and run the script.

Here's a link to IntelliJ if you don't have something to run .java programs.

And here's the link to the java file.

PLEASE DO NOT LOOK AT THE CONTENTS. I put in a long commented out section at the top and bottom so you don't see it, so just run it when it opens, I don't want you spoiling the answers.

I'll check your keys to make sure you didn't cheat.

Sorry about this, I wish I could get javascript working but it just isn't coming together.