The goal of the game is collecting all passengers without hitting your train. Train will become longer as you collect your passengers, so avoid selecting the routes that are shorter than your train. You need to collect all passengers to complete the level.
Arrow keys / drag left-click = choose a route for the train Space / Enter = proceed to the next level