Today I decided to delete my entire movement code because I got an idea the other night while trying to fall asleep.
This idea allowed me to reduce the code to about 4 events and make it a lot simpler as well.
I've also started coding the spawning of monsters on different levels.