Seol mar théacs é seo: A CSP solution to the trains problem