move order states into their own class