created elevator movement struct (renamed previous type to elevator direction type). code now uses a single struct variable to manage all elevator movement.