I think I've finished traintest.java but you might want to look through
it to see if I've missed anything. Especially
cantIterateThroughCarriages test case as I'm not sure thats what they
wanted me to do. I also don't think there are enough test cases and I
can keep working on this but I though it would be best if I commited
this now.