Vertical boilered locomotive