Create an algorithm which draw stations according to lines