Protip: DONT change someone's code without their permission

Ok, I realize I did need to separate the algorithm from main, which I will do.
However, I am pushing this back to its original state.

DONT change someone's fucking code without their permission. To be quite honest,
this really pissed me off and it's not what the repo is about.

Also, the changes made BROKE the program, and errors were thrown. How dare you?

I will separate the algo and write tests later today when I have the time.

Again, DO NOT change anyone's code without their permission, k thanks bye.