Solves the TrailPal challange at https://www.codeeval.com/open_challenges/56/