finish complex shunting yard, all tests pass