Edit Captain Silva's code to make a working Moore and Mealy elevator