That code was only written so I could showcase gameplay in YouTube videos and the Kickstarter pitch. During that period of time, I was not concerned with writing efficient or optimized code, because I was not planning for any of that code to be in the final version of the game. I only wanted to create a simple prototype that would allow me to demonstrate the planned features and mechanics that the final game was meant to have.
At the beginning of Yandere Simulator's development, my goal was to quickly create a rough proof-of-concept that could be used for pitching the game on Kickstarter.