In retrospective it does make sense, but JavaScript cannot edit JSON files. If it could, all users could edit your website at will.
To keep track of the given scores, though, I need to do precisely that.
ChatGPT suggested using something along the lines of node.js, but this server SUCKS when you want to do anything but upload files to it.
It turns out that php does have the ability to edit the JSON file, much to my dismay. I hate php. I don't even want to understand it, so I let the AI build the backend with it. I had a look at it and it looks simple enough.
I decided to use the Elo rating system, which seems to be quite popular amongst competitions, Esports and such. I'm pretty sure it was the algorithm that the original Facemash used as well.