As I've been working on my game I was refactoring and rewriting some of the code and I came across an amazing bug.