Battery powered locomotive