Moved elevator struct code into its own module