working version of FIFO elevator