Any bugs I was worried about here have been fixed in the unshared version of the game thanks to @RokCoder. Big round of applause.
I did about 95% of the code. Crazy, right? Ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh