rule3 x axis elevator with 5 states