Okay, so the code works, I'm running it incorrectly. Still WIP