fixed bug in win condition of Trains