Moved more stuff out of the main loop into Level.LevelControl(). Level still doesn't work, but I'm getting there.