Adjust subway station names, add end train and station prompts, and refactor displayLines function.