Simplify index logic and index view.

Add constant arrays for all 4 lines in the Trainline class and create initialize method and attr_accessor.

Change logic in main controller to iterate over arrays to create 4 line objects. 

Change index view to iterate over line code for each trainline object.