Underground railroad modelling and control: discrete event approach